diff --git a/build.gradle b/build.gradle index 57ab32ef..2a56ba14 100755 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { id "architectury-plugin" version "3.4-SNAPSHOT" - id "dev.architectury.loom" version "1.6-SNAPSHOT" apply false + id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false id "me.shedaniel.unified-publishing" version "0.1.+" apply false id "maven-publish" id "org.cadixdev.licenser" version "0.6.1" apply false diff --git a/common/build.gradle b/common/build.gradle index e983a819..cb68a5ab 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -31,7 +31,7 @@ dependencies { } architectury { - common("fabric", "neoforge") + common("fabric", "forge", "neoforge") } task sourcesJar(type: Jar, dependsOn: classes) { diff --git a/fabric/build.gradle b/fabric/build.gradle index 5a321b2b..302ff30f 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -121,7 +121,7 @@ unifiedPublishing { curseforge { token = project.hasProperty("curse_api_key") ? project.property("curse_api_key") : System.getenv("curse_api_key") id = project.curseforge_id - gameVersions.addAll "1.20.5", "Java 21" + gameVersions.addAll "1.20.5", "1.20.6", "Java 21" } } @@ -130,7 +130,7 @@ unifiedPublishing { token = project.hasProperty("modrinth_key") ? project.property("modrinth_key") : System.getenv("modrinth_key") id = project.modrinth_id version = "$project.version+$project.name" - gameVersions.addAll project.minecraft_version + gameVersions.addAll "1.20.5", project.minecraft_version } } } diff --git a/forge/build.gradle b/forge/build.gradle index c8b0d5fb..6d534256 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -35,9 +35,10 @@ dependencies { modLocalRuntime("me.shedaniel.cloth:basic-math:0.6.1") forgeDependencies(shadowCommon("me.shedaniel.cloth:basic-math:0.6.1")) - forgeDependencies("cpw.mods:securejarhandler:0.9.48") modLocalRuntime("blue.endless:jankson:${rootProject.jankson_version}") - modLocalRuntime("com.moandjiezana.toml:toml4j:${rootProject.toml4j_version}") + modLocalRuntime("com.moandjiezana.toml:toml4j:${rootProject.toml4j_version}") { + exclude(module: "gson") + } modLocalRuntime("org.yaml:snakeyaml:${rootProject.snakeyaml_version}") forgeDependencies(shadowCommon("blue.endless:jankson:${rootProject.jankson_version}")) forgeDependencies(shadowCommon("com.moandjiezana.toml:toml4j:${rootProject.toml4j_version}") { @@ -49,6 +50,10 @@ dependencies { shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive false } } +configurations.configureEach { + resolutionStrategy.force("net.sf.jopt-simple:jopt-simple:5.0.4") +} + processResources { filesMatching("META-INF/mods.toml") { expand "version": project.version @@ -100,7 +105,7 @@ unifiedPublishing { project { displayName = "[MinecraftForge $rootProject.supported_version] v$project.version" releaseType = "release" - gameVersions = ["1.20.3", "1.20.4"] + gameVersions = ["1.20.5", "1.20.6"] gameLoaders = ["forge"] mainPublication remapJar diff --git a/gradle.properties b/gradle.properties index 4157b325..a7c7932f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,8 +1,8 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false -minecraft_version=1.20.5 -supported_version=1.20.5 +minecraft_version=1.20.6 +supported_version=1.20.5/6 archives_base_name=cloth-config archives_base_name_snapshot=cloth-config-snapshot @@ -13,12 +13,12 @@ jankson_version=1.2.0 toml4j_version=0.7.2 snakeyaml_version=1.27 -fabric_loader_version=0.15.10 -fabric_api_version=0.97.6+1.20.5 -mod_menu_version=10.0.0-beta.1 +fabric_loader_version=0.16.0 +fabric_api_version=0.100.4+1.20.6 +mod_menu_version=10.0.0 -forge_version=49.0.3 -neoforge_version=20.5.0-beta +forge_version=50.1.12 +neoforge_version=20.6.119 neoforge_pr= curseforge_id=348521 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f9014382..9e19fe3f 100755 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 198a2a7c..843bb6a7 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -100,7 +100,7 @@ unifiedPublishing { project { displayName = "[NeoForge $rootProject.supported_version] v$project.version" releaseType = "release" - gameVersions = ["1.20.5"] + gameVersions = ["1.20.5", "1.20.6"] gameLoaders = ["neoforge"] mainPublication remapJar diff --git a/settings.gradle b/settings.gradle index c0332d0c..a482eb80 100755 --- a/settings.gradle +++ b/settings.gradle @@ -2,9 +2,9 @@ pluginManagement { repositories { maven { url "https://maven.fabricmc.net/" } maven { url "https://maven.architectury.dev/" } + gradlePluginPortal() maven { url "https://files.minecraftforge.net/maven/" } maven { url "https://jitpack.io" } - gradlePluginPortal() } } @@ -14,7 +14,7 @@ if (JavaVersion.current().ordinal() + 1 < 21) { include("common") include("fabric") -//include("forge") +include("forge") include("neoforge") rootProject.name = 'cloth-config'