diff --git a/.builds/linux.yml b/.builds/linux.yml index df4b5f6058..c9145ca56f 100644 --- a/.builds/linux.yml +++ b/.builds/linux.yml @@ -1,6 +1,6 @@ image: debian/bookworm packages: - - openjdk-17-jdk-headless + - openjdk-21-jdk-headless - jq sources: - https://git.sr.ht/~williewillus/botania diff --git a/Fabric/build.gradle b/Fabric/build.gradle index 7d71c745d6..2736053fb8 100644 --- a/Fabric/build.gradle +++ b/Fabric/build.gradle @@ -99,20 +99,20 @@ dependencies { minecraft "com.mojang:minecraft:${minecraft_version}" mappings loom.layered() { officialMojangMappings() - parchment("org.parchmentmc.data:parchment-${minecraft_version}:${parchment_version}@zip") + parchment("org.parchmentmc.data:parchment-${parchment_version}@zip") } - modImplementation "net.fabricmc:fabric-loader:0.16.0" - modImplementation "net.fabricmc.fabric-api:fabric-api:0.97.0+${minecraft_version}" + modImplementation "net.fabricmc:fabric-loader:${fabric_version}" + modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_api_version}" compileOnly project(":Xplat") - modImplementation "vazkii.patchouli:Patchouli:${minecraft_version}-${patchouli_version}-FABRIC" + modImplementation "vazkii.patchouli:Patchouli:${patchouli_version}-FABRIC" modCompileOnly "me.shedaniel:RoughlyEnoughItems-fabric:${rei_version}" - modCompileOnly "dev.emi:emi-fabric:${emi_version}+${minecraft_version}:api" - modLocalRuntime "dev.emi:emi-fabric:${emi_version}+${minecraft_version}" + modCompileOnly "dev.emi:emi-fabric:${emi_version}:api" + modLocalRuntime "dev.emi:emi-fabric:${emi_version}" modImplementation "me.zeroeightsix:fiber:0.23.0-2" include "me.zeroeightsix:fiber:0.23.0-2" diff --git a/NeoForge/build.gradle b/NeoForge/build.gradle index 3065b052fe..05fb3f85d5 100644 --- a/NeoForge/build.gradle +++ b/NeoForge/build.gradle @@ -34,8 +34,9 @@ repositories { subsystems { parchment { - minecraftVersion = "${minecraft_version}" - mappingsVersion = "${parchment_version}" + var parchment_components = parchment_version.split(":") + minecraftVersion = parchment_components[0] + mappingsVersion = parchment_components[1] } } @@ -56,18 +57,18 @@ runs { } dependencies { - implementation "net.neoforged:neoforge:20.4.173" + implementation "net.neoforged:neoforge:${neoforge_version}" implementation project(":Xplat") - implementation "vazkii.patchouli:Patchouli:${minecraft_version}-${patchouli_version}-NEOFORGE" + implementation "vazkii.patchouli:Patchouli:${patchouli_version}-NEOFORGE" compileOnly "mezz.jei:jei-${minecraft_version}-common-api:${jei_version}" - runtimeOnly "mezz.jei:jei-${minecraft_version}-neoforge:${jei_version}" + // runtimeOnly "mezz.jei:jei-${minecraft_version}-neoforge:${jei_version}" - compileOnly "dev.emi:emi-neoforge:${emi_version}+${minecraft_version}:api" - //runtimeOnly "dev.emi:emi-neoforge:${emi_version}+${minecraft_version}" + compileOnly "dev.emi:emi-neoforge:${emi_version}:api" + runtimeOnly "dev.emi:emi-neoforge:${emi_version}" - compileOnly "top.theillusivec4.curios:curios-neoforge:${curios_version}+${minecraft_version}:api" - runtimeOnly "top.theillusivec4.curios:curios-neoforge:${curios_version}+${minecraft_version}" + compileOnly "top.theillusivec4.curios:curios-neoforge:${curios_version}:api" + runtimeOnly "top.theillusivec4.curios:curios-neoforge:${curios_version}" // compileOnly 'com.blamejared.crafttweaker:CraftTweaker-forge-1.18.2:9.1.123' diff --git a/Xplat/build.gradle b/Xplat/build.gradle index 03bfe9dc5f..099ada0c33 100644 --- a/Xplat/build.gradle +++ b/Xplat/build.gradle @@ -1,6 +1,9 @@ plugins { id 'java' - id 'agency.highlysuspect.minivan' + // temporary until https://github.com/CrackedPolishedBlackstoneBricksMC/minivan/issues/2 is fixed + // id 'agency.highlysuspect.minivan' + // could probably have used NeoGradle but i had the code for ModDevGradle ready + id "net.neoforged.moddev" } archivesBaseName = "${mod_name}-xplat" @@ -9,9 +12,19 @@ if (System.getenv().RELEASE_MODE == null) { version += '-SNAPSHOT' } -minivan { - version(minecraft_version) - accessWideners 'src/main/resources/botania_xplat.accesswidener' +// minivan { +// version(minecraft_version) +// accessWideners 'src/main/resources/botania_xplat.accesswidener' +// } + +neoForge { + neoFormVersion = "1.21.1-20240808.144430" + + parchment { + var parchment_components = parchment_version.split(":") + mappingsVersion = parchment_components[1] + minecraftVersion = parchment_components[0] + } } repositories { @@ -35,7 +48,7 @@ repositories { dependencies { compileOnly "net.fabricmc:sponge-mixin:${mixin_version}" annotationProcessor("io.github.llamalad7:mixinextras-common:${mixinextras_version}") - compileOnly "vazkii.patchouli:Patchouli-xplat:${minecraft_version}-${patchouli_version}" + compileOnly "vazkii.patchouli:Patchouli-xplat:${patchouli_version}" testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.1' @@ -45,7 +58,7 @@ dependencies { compileOnly "com.unascribed:ears-api:${ears_version}" compileOnly "mezz.jei:jei-${minecraft_version}-common-api:${jei_version}" - compileOnly "dev.emi:emi-xplat-mojmap:${emi_version}+${minecraft_version}:api" + compileOnly "dev.emi:emi-xplat-mojmap:${emi_version}:api" compileOnly "org.jetbrains:annotations:24.0.1" diff --git a/build.gradle b/build.gradle index 04101f4b34..e5c71d768c 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ subprojects { apply plugin: 'pmd' apply plugin: "com.diffplug.spotless" apply plugin: 'maven-publish' - java.toolchain.languageVersion = JavaLanguageVersion.of(17) + java.toolchain.languageVersion = JavaLanguageVersion.of(21) java.withSourcesJar() archivesBaseName = "${mod_name}" @@ -28,7 +28,7 @@ subprojects { tasks.withType(JavaCompile).configureEach { it.options.encoding = 'UTF-8' - it.options.release = 17 + it.options.release = 21 } tasks.withType(GenerateModuleMetadata).configureEach { diff --git a/gradle.properties b/gradle.properties index 48bef6dff2..7dafa13941 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,18 +7,24 @@ org.gradle.jvmargs=-Xmx3G \ --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \ --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -minecraft_version=1.20.4 +minecraft_version=1.21.1 build_number=447 group=vazkii.botania mod_name=Botania + mixin_version=0.15.0+mixin.0.8.7 mixinextras_version=0.4.0 -patchouli_version=85 -jei_version=17.3.1.3 -emi_version=1.1.10 -rei_version=14.1.742 -trinkets_version=3.8.1 -curios_version=7.4.3 +patchouli_version=1.21-87 +jei_version=19.16.4.171 +emi_version=1.1.12+1.21 +rei_version=16.0.754 +trinkets_version=3.10.0 +curios_version=9.0.9+1.21 ears_version=1.4.6 -cca_version=5.4.0 -parchment_version=2024.04.14 \ No newline at end of file +cca_version=6.1.1 +parchment_version=1.21:2024.07.28 + +neoforge_version=21.1.39 + +fabric_version=0.16.4 +fabric_api_version=0.103.0+1.21.1 \ No newline at end of file diff --git a/gradle/gradle-daemon-jvm.properties b/gradle/gradle-daemon-jvm.properties index 858feb7e38..63e5bbdf48 100644 --- a/gradle/gradle-daemon-jvm.properties +++ b/gradle/gradle-daemon-jvm.properties @@ -1,2 +1,2 @@ #This file is generated by updateDaemonJvm -toolchainVersion=17 +toolchainVersion=21 diff --git a/settings.gradle b/settings.gradle index b08450e7c2..9924f9400c 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,6 +1,7 @@ pluginManagement { plugins { id 'net.neoforged.gradle.userdev' version '7.0.97' apply false + id "net.neoforged.moddev" version "0.1.126" apply false id 'org.spongepowered.mixin' version '0.8.7' apply false id 'agency.highlysuspect.minivan' version '0.5' apply false id 'fabric-loom' version '1.7.2' apply false