Skip to content

Commit

Permalink
Update to Loom 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Feb 27, 2025
1 parent b470571 commit 407deae
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

plugins {
id "fabric-loom" version "1.9-SNAPSHOT"
id "fabric-loom" version "1.10-SNAPSHOT"
id "com.diffplug.spotless" version "7.0.2"
}

Expand Down Expand Up @@ -110,7 +110,7 @@ processResources {
inputs.property "version", project.version

filesMatching("fabric.mod.json") {
expand "version": project.version
expand "version": inputs.properties.version
}
}

Expand All @@ -130,16 +130,18 @@ java {
}

jar {
inputs.property "archivesName", project.base.archivesName

from("LICENSE") {
rename {"${it}_${base.archivesName.get()}"}
rename {"${it}_${inputs.properties.archivesName}"}
}

exclude("intentionally_untranslated.json")
}

import com.diffplug.spotless.generic.LicenseHeaderStep
spotless {
lineEndings("WINDOWS")
lineEndings = "WINDOWS"
java {
removeUnusedImports()
leadingSpacesToTabs()
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ org.gradle.parallel=true
# check these at https://fabricmc.net/develop/ and
# https://modrinth.com/mod/fabric-api/versions
minecraft_version=1.21.4
yarn_mappings=1.21.4+build.4
loader_version=0.16.9
yarn_mappings=1.21.4+build.8
loader_version=0.16.10

# Fabric API
fabric_version=0.113.0+1.21.4
fabric_version=0.118.0+1.21.4

# Mod Properties
mod_version=v7.46.6-MC1.21.4
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 1 addition & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"accessWidener": "wurst.accesswidener",
"depends": {
"fabricloader": ">=0.16.9",
"fabricloader": ">=0.16.10",
"fabric-api": ">=0.110.5",
"minecraft": "~1.21.4-rc.3",
"java": ">=21"
Expand Down

0 comments on commit 407deae

Please sign in to comment.