diff --git a/.idea/misc.xml b/.idea/misc.xml
index 9b7732a..fe0b0da 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 473204b..a0ec829 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -4,10 +4,6 @@
-
-
-
-
\ 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 8722c44..893b0bd 100644
--- a/.idea/modules/Minecraft-Mods-BetterPingDisplay.main.iml
+++ b/.idea/modules/Minecraft-Mods-BetterPingDisplay.main.iml
@@ -15,8 +15,4 @@
-
-
-
-
\ No newline at end of file
diff --git a/.idea/runConfigurations/Minecraft_Server.xml b/.idea/runConfigurations/Minecraft_Server.xml
index 6e3876f..13fc9e5 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 4f0e9aa..171f258 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,6 @@ 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 beb54b5..dc95a46 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,22 +1,22 @@
plugins {
- id 'fabric-loom' version '1.8-SNAPSHOT'
+ id 'fabric-loom' version '1.6-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.1'
+ testImplementation 'junit:junit:4.13'
}
processResources {
@@ -27,25 +27,33 @@ processResources {
}
}
-tasks.withType(JavaCompile).configureEach {
+tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(JavaCompile).configureEach {
- it.options.release = 21
-}
-
-java {
- withSourcesJar()
-
- sourceCompatibility = JavaVersion.VERSION_21
- targetCompatibility = JavaVersion.VERSION_21
+ it.options.release = 17
}
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 8e9e628..9de50fa 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.3
-yarn_mappings=1.21.3+build.2
-loader_version=0.16.9
+minecraft_version=1.20.5
+yarn_mappings=1.20.5+build.1
+loader_version=0.15.10
# Mod Properties
-mod_version = 1.1.4.3
+mod_version = 1.1.2
maven_group = com.vladmarica
archives_base_name = BetterPingDisplay-Fabric
# Dependencies
-fabric_version=0.107.0+1.21.3
+fabric_version=0.97.6+1.20.5
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 5c40527..509c4a2 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.10.2-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/settings.gradle b/settings.gradle
index f91a4fe..5b60df3 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,5 +1,6 @@
pluginManagement {
repositories {
+ jcenter()
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'