Skip to content

Commit f6b6a40

Browse files
committed
chore: ⬆️ Update Gradle Wrapper to v8.11.1 and Fabric Loom to v1.9.2
Also moved the Fabric Loom version declaration into `gradle.properties`, using `settings.gradle`.
1 parent d2038d1 commit f6b6a40

7 files changed

+13
-15
lines changed

build.gradle.kts

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
21
plugins {
32
id("java")
4-
id("fabric-loom") version("1.7.3") apply(false)
3+
id("fabric-loom") apply(false)
54
}
65

76
val MINECRAFT_VERSION by extra { "1.21.1" }
87
val NEOFORGE_VERSION by extra { "21.1.58" }
9-
val FABRIC_LOADER_VERSION by extra { "0.16.4" }
8+
val FABRIC_LOADER_VERSION by extra { "0.16.10" }
109
val FABRIC_API_VERSION by extra { "0.103.0+1.21.1" }
1110

1211
// This value can be set to null to disable Parchment.
@@ -21,20 +20,13 @@ allprojects {
2120
apply(plugin = "maven-publish")
2221
}
2322

24-
tasks.withType<JavaCompile> {
25-
options.encoding = "UTF-8"
26-
}
27-
2823
tasks.jar {
2924
enabled = false
3025
}
3126

3227
subprojects {
3328
apply(plugin = "maven-publish")
3429

35-
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
36-
37-
3830
fun createVersionString(): String {
3931
val builder = StringBuilder()
4032

common/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id("java")
33
id("idea")
4-
id("fabric-loom") version "1.7.3"
4+
id("fabric-loom")
55
id("com.github.gmazzo.buildconfig") version "5.3.5"
66
}
77

fabric/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id("java")
33
id("idea")
4-
id("fabric-loom") version ("1.7.3")
4+
id("fabric-loom")
55
}
66

77
val MINECRAFT_VERSION: String by rootProject.extra

gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
org.gradle.jvmargs = -Xmx4G
22
org.gradle.caching=true
33
org.gradle.parallel=true
4+
5+
# Gradle plugins
6+
fabric_loom_version=1.9.2
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

neoforge/build.gradle.kts

-2
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,3 @@ dependencies {
123123
includeAdditional("io.github.douira:glsl-transformer:2.0.1")
124124
includeAdditional("org.anarres:jcpp:1.4.14")
125125
}
126-
127-
java.toolchain.languageVersion = JavaLanguageVersion.of(21)

settings.gradle.kts

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ pluginManagement {
66
maven { url = uri("https://maven.neoforged.net/releases/") }
77
gradlePluginPortal()
88
}
9+
10+
val fabric_loom_version: String by settings
11+
plugins {
12+
id("fabric-loom") version(fabric_loom_version) apply(false)
13+
}
914
}
1015

1116
include("common", "fabric", "neoforge")

0 commit comments

Comments
 (0)