Buildscript updates, use fabric-api dependency in fmj

This commit is contained in:
Max
2022-12-08 18:10:18 +01:00
parent b94fc210a3
commit 96f3dc6f9c
7 changed files with 16 additions and 61 deletions

View File

@@ -126,7 +126,7 @@ unifiedPublishing {
displayName = "[Forge $rootProject.supported_version] v$project.version"
releaseType = "$rootProject.artifact_type"
changelog = releaseChangelog()
gameVersions = ["1.19.1", "1.19.2"]
gameVersions = ["1.19.2"]
gameLoaders = ["forge"]
mainPublication renameJarForPublication
@@ -135,7 +135,7 @@ unifiedPublishing {
curseforge {
token = CURSE_API_KEY
id = rootProject.curseforge_id
gameVersions.addAll "Java 17"
gameVersions.addAll "Java 17", "1.19.2"
}
}
@@ -150,13 +150,3 @@ unifiedPublishing {
}
}
// Update mods.toml with the new versions automatically
// Not using processResources because it is easier to do this manually, and see it reflected immediately
afterEvaluate {
file("src/main/resources/META-INF/mods.toml").withOutputStream {
it << file("mods.toml").text
.replaceAll("@LOADER_MAJOR@", rootProject.required_forge_version.split("\\.")[0])
.replaceAll("@MINECRAFT_VERSION@", rootProject.required_version)
.replaceAll("@FORGE_VERSION@", rootProject.required_forge_version)
}
}

View File

@@ -1,29 +0,0 @@
modLoader = "javafml"
loaderVersion = "[@LOADER_MAJOR@,)"
issueTrackerURL = "https://github.com/shedaniel/architectury/issues"
license = "GNU LGPLv3"
[[mods]]
modId = "architectury"
version = "${version}"
displayName = "Architectury"
authors = "shedaniel"
description = '''
A intermediary api aimed to ease developing multiplatform mods.
'''
logoFile = "icon.png"
license = "LGPL-3"
[[dependencies.architectury]]
modId = "minecraft"
mandatory = true
versionRange = "[@MINECRAFT_VERSION@,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.architectury]]
modId = "forge"
mandatory = true
versionRange = "[@FORGE_VERSION@,)"
ordering = "NONE"
side = "BOTH"

View File

@@ -1,5 +1,5 @@
modLoader = "javafml"
loaderVersion = "[42,)"
loaderVersion = "[43,)"
issueTrackerURL = "https://github.com/shedaniel/architectury/issues"
license = "GNU LGPLv3"
@@ -17,13 +17,13 @@ license = "LGPL-3"
[[dependencies.architectury]]
modId = "minecraft"
mandatory = true
versionRange = "[1.19.1,)"
versionRange = "[1.19.2,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.architectury]]
modId = "forge"
mandatory = true
versionRange = "[42.0.0,)"
versionRange = "[43.2.0,)"
ordering = "NONE"
side = "BOTH"