From 645bdfd560613d0ffb21ce4b99a2949cf6a9a31b Mon Sep 17 00:00:00 2001 From: Yuuki Chan Date: Sat, 15 Jun 2024 15:10:08 +0900 Subject: [PATCH 1/3] Updated for Minecraft 1.21 --- .idea/runConfigurations/Minecraft_Server.xml | 2 +- README.md | 1 + build.gradle | 2 +- gradle.properties | 10 +++++----- settings.gradle | 1 - 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.idea/runConfigurations/Minecraft_Server.xml b/.idea/runConfigurations/Minecraft_Server.xml index c4ae658..3414845 100644 --- a/.idea/runConfigurations/Minecraft_Server.xml +++ b/.idea/runConfigurations/Minecraft_Server.xml @@ -12,5 +12,5 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index 171f258..4f0e9aa 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ This mod's config file is `betterpingdisplay.json`. It contains the following op * **1.18.x** * **1.19.x** * **1.20.x** +* **1.21.x** ## Requirements * [Fabric](https://fabricmc.net/) diff --git a/build.gradle b/build.gradle index dc95a46..2799d1f 100644 --- a/build.gradle +++ b/build.gradle @@ -32,7 +32,7 @@ tasks.withType(JavaCompile) { } tasks.withType(JavaCompile).configureEach { - it.options.release = 17 + it.options.release = 21 } jar { diff --git a/gradle.properties b/gradle.properties index 6b59b74..34f362b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use -minecraft_version=1.20.6 -yarn_mappings=1.20.6+build.1 -loader_version=0.15.10 +minecraft_version=1.21 +yarn_mappings=1.21+build.2 +loader_version=0.15.11 # Mod Properties -mod_version = 1.1.3 +mod_version = 1.1.4.2 maven_group = com.vladmarica archives_base_name = BetterPingDisplay-Fabric # Dependencies -fabric_version=0.97.8+1.20.6 +fabric_version=0.100.1+1.21 diff --git a/settings.gradle b/settings.gradle index 5b60df3..f91a4fe 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,6 +1,5 @@ pluginManagement { repositories { - jcenter() maven { name = 'Fabric' url = 'https://maven.fabricmc.net/' From d99ccfac62f9fdd418ae62be77089681ab5fb12b Mon Sep 17 00:00:00 2001 From: Yuuki Chan Date: Sat, 15 Jun 2024 15:10:30 +0900 Subject: [PATCH 2/3] Updated for Minecraft 1.21 --- .idea/misc.xml | 2 +- .idea/modules.xml | 2 ++ .idea/modules/Minecraft-Mods-BetterPingDisplay.main.iml | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index fe0b0da..9b7732a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index a0ec829..ce9e91d 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -4,6 +4,8 @@ + + \ No newline at end of file diff --git a/.idea/modules/Minecraft-Mods-BetterPingDisplay.main.iml b/.idea/modules/Minecraft-Mods-BetterPingDisplay.main.iml index 893b0bd..8722c44 100644 --- a/.idea/modules/Minecraft-Mods-BetterPingDisplay.main.iml +++ b/.idea/modules/Minecraft-Mods-BetterPingDisplay.main.iml @@ -15,4 +15,8 @@ + + + + \ No newline at end of file From f60d16559260550cb5316ef77ce794a2df004ea9 Mon Sep 17 00:00:00 2001 From: Yuuki Chan Date: Tue, 12 Nov 2024 13:38:12 +0900 Subject: [PATCH 3/3] Updated for Minecraft 1.21.3 --- .idea/modules.xml | 2 ++ .idea/runConfigurations/Minecraft_Server.xml | 2 +- build.gradle | 36 ++++++++------------ gradle.properties | 10 +++--- gradle/wrapper/gradle-wrapper.properties | 2 +- 5 files changed, 23 insertions(+), 29 deletions(-) diff --git a/.idea/modules.xml b/.idea/modules.xml index ce9e91d..473204b 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -6,6 +6,8 @@ + + \ No newline at end of file diff --git a/.idea/runConfigurations/Minecraft_Server.xml b/.idea/runConfigurations/Minecraft_Server.xml index 3414845..6e3876f 100644 --- a/.idea/runConfigurations/Minecraft_Server.xml +++ b/.idea/runConfigurations/Minecraft_Server.xml @@ -12,5 +12,5 @@ - + \ No newline at end of file diff --git a/build.gradle b/build.gradle index 2799d1f..beb54b5 100644 --- a/build.gradle +++ b/build.gradle @@ -1,22 +1,22 @@ plugins { - id 'fabric-loom' version '1.6-SNAPSHOT' + id 'fabric-loom' version '1.8-SNAPSHOT' id 'maven-publish' } -sourceCompatibility = JavaVersion.VERSION_17 -targetCompatibility = JavaVersion.VERSION_17 - -archivesBaseName = project.archives_base_name version = project.mod_version group = project.maven_group minecraft_version = project.minecraft_version +base { + archivesName = project.archives_base_name +} + dependencies { minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - testImplementation 'junit:junit:4.13' + testImplementation 'junit:junit:4.13.1' } processResources { @@ -27,7 +27,7 @@ processResources { } } -tasks.withType(JavaCompile) { +tasks.withType(JavaCompile).configureEach { options.encoding = "UTF-8" } @@ -35,23 +35,15 @@ tasks.withType(JavaCompile).configureEach { it.options.release = 21 } -jar { - from "LICENSE" +java { + withSourcesJar() + + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 } -// configure the maven publication -publishing { - publications { - mavenJava(MavenPublication) { - from components.java - } - } - - // select the repositories you want to publish to - repositories { - // uncomment to publish to the local maven - // mavenLocal() - } +jar { + from "LICENSE" } sourceSets { diff --git a/gradle.properties b/gradle.properties index 34f362b..8e9e628 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use -minecraft_version=1.21 -yarn_mappings=1.21+build.2 -loader_version=0.15.11 +minecraft_version=1.21.3 +yarn_mappings=1.21.3+build.2 +loader_version=0.16.9 # Mod Properties -mod_version = 1.1.4.2 +mod_version = 1.1.4.3 maven_group = com.vladmarica archives_base_name = BetterPingDisplay-Fabric # Dependencies -fabric_version=0.100.1+1.21 +fabric_version=0.107.0+1.21.3 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 509c4a2..5c40527 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists