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..473204b 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -4,6 +4,10 @@
+
+
+
+
\ 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
diff --git a/.idea/runConfigurations/Minecraft_Server.xml b/.idea/runConfigurations/Minecraft_Server.xml
index 13fc9e5..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/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..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,33 +27,25 @@ processResources {
}
}
-tasks.withType(JavaCompile) {
+tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
tasks.withType(JavaCompile).configureEach {
- it.options.release = 17
+ it.options.release = 21
+}
+
+java {
+ withSourcesJar()
+
+ sourceCompatibility = JavaVersion.VERSION_21
+ targetCompatibility = JavaVersion.VERSION_21
}
jar {
from "LICENSE"
}
-// 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()
- }
-}
-
sourceSets {
main.java {
include 'com/vladmarica/betterpingdisplay/**/*'
diff --git a/gradle.properties b/gradle.properties
index 9de50fa..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.20.5
-yarn_mappings=1.20.5+build.1
-loader_version=0.15.10
+minecraft_version=1.21.3
+yarn_mappings=1.21.3+build.2
+loader_version=0.16.9
# Mod Properties
-mod_version = 1.1.2
+mod_version = 1.1.4.3
maven_group = com.vladmarica
archives_base_name = BetterPingDisplay-Fabric
# Dependencies
-fabric_version=0.97.6+1.20.5
+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
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/'