From c8dba6da199d3059c074ce4d86e5a6490956478d Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Tue, 23 Apr 2024 16:24:51 +0100 Subject: [PATCH] 1.20.5 --- .github/workflows/build.yml | 1 - build.gradle | 7 ++++--- gradle.properties | 8 ++++---- src/client/resources/modid.client.mixins.json | 2 +- src/main/resources/fabric.mod.json | 6 +++--- src/main/resources/modid.mixins.json | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94d2e6648..b01da52cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,6 @@ jobs: matrix: # Use these Java versions java: [ - 17, # Current Java LTS & minimum supported by Minecraft 21, # Current Java LTS ] runs-on: ubuntu-22.04 diff --git a/build.gradle b/build.gradle index a14d12bc6..844696904 100644 --- a/build.gradle +++ b/build.gradle @@ -50,7 +50,7 @@ processResources { } tasks.withType(JavaCompile).configureEach { - it.options.release = 17 + it.options.release = 21 } java { @@ -59,8 +59,8 @@ java { // If you remove this line, sources will not be generated. withSourcesJar() - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 } jar { @@ -73,6 +73,7 @@ jar { publishing { publications { create("mavenJava", MavenPublication) { + artifactId = project.archives_base_name from components.java } } diff --git a/gradle.properties b/gradle.properties index 43f118494..97d4019e4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,9 +4,9 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.20.4 -yarn_mappings=1.20.4+build.3 -loader_version=0.15.9 +minecraft_version=1.20.5 +yarn_mappings=1.20.5+build.1 +loader_version=0.15.10 # Mod Properties mod_version=1.0.0 @@ -14,4 +14,4 @@ maven_group=com.example archives_base_name=modid # Dependencies -fabric_version=0.96.11+1.20.4 \ No newline at end of file +fabric_version=0.97.5+1.20.5 \ No newline at end of file diff --git a/src/client/resources/modid.client.mixins.json b/src/client/resources/modid.client.mixins.json index 21b0fc1da..934145080 100644 --- a/src/client/resources/modid.client.mixins.json +++ b/src/client/resources/modid.client.mixins.json @@ -1,7 +1,7 @@ { "required": true, "package": "com.example.mixin.client", - "compatibilityLevel": "JAVA_17", + "compatibilityLevel": "JAVA_21", "client": [ "ExampleClientMixin" ], diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 9cb5a161d..802b85dbb 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -30,9 +30,9 @@ } ], "depends": { - "fabricloader": ">=0.15.9", - "minecraft": "~1.20.4", - "java": ">=17", + "fabricloader": ">=0.15.10", + "minecraft": "~1.20.5", + "java": ">=21", "fabric-api": "*" }, "suggests": { diff --git a/src/main/resources/modid.mixins.json b/src/main/resources/modid.mixins.json index 166e78790..f7fc0a389 100644 --- a/src/main/resources/modid.mixins.json +++ b/src/main/resources/modid.mixins.json @@ -1,7 +1,7 @@ { "required": true, "package": "com.example.mixin", - "compatibilityLevel": "JAVA_17", + "compatibilityLevel": "JAVA_21", "mixins": [ "ExampleMixin" ],