aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar modmuss50 <[email protected]>2023-07-05 19:47:49 +0100
committerLibravatar modmuss50 <[email protected]>2023-07-05 19:47:49 +0100
commit83fc4031afd288a33d583b0e2a675dd0bd5e36bb (patch)
tree19a005f575ce87620a5f1802cd1e518dca07c016
parent1.20.1 (diff)
Update to Loom 1.3 and Gradle 8.2
-rw-r--r--LICENSE2
-rw-r--r--build.gradle16
-rw-r--r--gradle.properties4
-rw-r--r--gradle/wrapper/gradle-wrapper.jarbin62076 -> 63375 bytes
-rw-r--r--gradle/wrapper/gradle-wrapper.properties3
-rwxr-xr-xgradlew5
-rw-r--r--settings.gradle16
-rw-r--r--src/client/java/com/example/ExampleModClient.java8
-rw-r--r--src/main/java/com/example/ExampleMod.java20
9 files changed, 39 insertions, 35 deletions
diff --git a/LICENSE b/LICENSE
index 0e259d4..1625c17 100644
--- a/LICENSE
+++ b/LICENSE
@@ -118,4 +118,4 @@ express Statement of Purpose.
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
- this CC0 or use of the Work.
+ this CC0 or use of the Work. \ No newline at end of file
diff --git a/build.gradle b/build.gradle
index a8bdc34..66710fb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,5 @@
plugins {
- id 'fabric-loom' version '1.2-SNAPSHOT'
+ id 'fabric-loom' version '1.3-SNAPSHOT'
id 'maven-publish'
}
@@ -21,12 +21,12 @@ repositories {
loom {
splitEnvironmentSourceSets()
- mods {
- "modid" {
- sourceSet sourceSets.main
- sourceSet sourceSets.client
- }
- }
+ mods {
+ "modid" {
+ sourceSet sourceSets.main
+ sourceSet sourceSets.client
+ }
+ }
}
@@ -69,7 +69,7 @@ java {
jar {
from("LICENSE") {
- rename { "${it}_${project.archivesBaseName}"}
+ rename { "${it}_${project.base.archivesName.get()}"}
}
}
diff --git a/gradle.properties b/gradle.properties
index 07ef228..854298d 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -5,7 +5,7 @@ org.gradle.parallel=true
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.1
-yarn_mappings=1.20.1+build.1
+yarn_mappings=1.20.1+build.9
loader_version=0.14.21
# Mod Properties
@@ -14,4 +14,4 @@ maven_group=com.example
archives_base_name=modid
# Dependencies
-fabric_version=0.83.0+1.20.1 \ No newline at end of file
+fabric_version=0.85.0+1.20.1 \ No newline at end of file
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index c1962a7..033e24c 100644
--- a/gradle/wrapper/gradle-wrapper.jar
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 37aef8d..62f495d 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
networkTimeout=10000
+validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
index aeb74cb..fcb6fca 100755
--- a/gradlew
+++ b/gradlew
@@ -130,10 +130,13 @@ location of your Java installation."
fi
else
JAVACMD=java
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
+ fi
fi
# Increase the maximum file descriptors if we can.
diff --git a/settings.gradle b/settings.gradle
index 56266b4..75c4d72 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,10 +1,10 @@
pluginManagement {
- repositories {
- maven {
- name = 'Fabric'
- url = 'https://maven.fabricmc.net/'
- }
- mavenCentral()
- gradlePluginPortal()
- }
+ repositories {
+ maven {
+ name = 'Fabric'
+ url = 'https://maven.fabricmc.net/'
+ }
+ mavenCentral()
+ gradlePluginPortal()
+ }
} \ No newline at end of file
diff --git a/src/client/java/com/example/ExampleModClient.java b/src/client/java/com/example/ExampleModClient.java
index 12c3502..e2b0436 100644
--- a/src/client/java/com/example/ExampleModClient.java
+++ b/src/client/java/com/example/ExampleModClient.java
@@ -3,8 +3,8 @@ package com.example;
import net.fabricmc.api.ClientModInitializer;
public class ExampleModClient implements ClientModInitializer {
- @Override
- public void onInitializeClient() {
- // This entrypoint is suitable for setting up client-specific logic, such as rendering.
- }
+ @Override
+ public void onInitializeClient() {
+ // This entrypoint is suitable for setting up client-specific logic, such as rendering.
+ }
} \ No newline at end of file
diff --git a/src/main/java/com/example/ExampleMod.java b/src/main/java/com/example/ExampleMod.java
index 4cbb0cb..f97cce9 100644
--- a/src/main/java/com/example/ExampleMod.java
+++ b/src/main/java/com/example/ExampleMod.java
@@ -6,17 +6,17 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ExampleMod implements ModInitializer {
- // This logger is used to write text to the console and the log file.
- // It is considered best practice to use your mod id as the logger's name.
- // That way, it's clear which mod wrote info, warnings, and errors.
+ // This logger is used to write text to the console and the log file.
+ // It is considered best practice to use your mod id as the logger's name.
+ // That way, it's clear which mod wrote info, warnings, and errors.
public static final Logger LOGGER = LoggerFactory.getLogger("modid");
- @Override
- public void onInitialize() {
- // This code runs as soon as Minecraft is in a mod-load-ready state.
- // However, some things (like resources) may still be uninitialized.
- // Proceed with mild caution.
+ @Override
+ public void onInitialize() {
+ // This code runs as soon as Minecraft is in a mod-load-ready state.
+ // However, some things (like resources) may still be uninitialized.
+ // Proceed with mild caution.
- LOGGER.info("Hello Fabric world!");
- }
+ LOGGER.info("Hello Fabric world!");
+ }
} \ No newline at end of file