Skip to content

Commit 0614df1

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 4c09f6e commit 0614df1

File tree

7 files changed

+12
-14
lines changed

7 files changed

+12
-14
lines changed

build.gradle.kts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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" }
@@ -24,20 +23,13 @@ allprojects {
2423
apply(plugin = "maven-publish")
2524
}
2625

27-
tasks.withType<JavaCompile> {
28-
options.encoding = "UTF-8"
29-
}
30-
3126
tasks.jar {
3227
enabled = false
3328
}
3429

3530
subprojects {
3631
apply(plugin = "maven-publish")
3732

38-
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
39-
40-
4133
fun createVersionString(): String {
4234
val builder = StringBuilder()
4335

common/build.gradle.kts

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 0 deletions
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
Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,3 @@ dependencies {
125125
includeAdditional("io.github.douira:glsl-transformer:2.0.1")
126126
includeAdditional("org.anarres:jcpp:1.4.14")
127127
}
128-
129-
java.toolchain.languageVersion = JavaLanguageVersion.of(21)

settings.gradle.kts

Lines changed: 5 additions & 0 deletions
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)