Skip to content

Commit 453617d

Browse files
committed
Update to loom 1.6
1 parent e6c436b commit 453617d

File tree

7 files changed

+21
-28
lines changed

7 files changed

+21
-28
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,24 @@ jobs:
1515
17, # Current Java LTS & minimum supported by Minecraft
1616
21, # Current Java LTS
1717
]
18-
# and run on both Linux and Windows
19-
os: [ubuntu-22.04, windows-2022]
20-
runs-on: ${{ matrix.os }}
18+
runs-on: ubuntu-22.04
2119
steps:
2220
- name: checkout repository
2321
uses: actions/checkout@v4
2422
- name: validate gradle wrapper
25-
uses: gradle/wrapper-validation-action@v1
23+
uses: gradle/wrapper-validation-action@v2
2624
- name: setup jdk ${{ matrix.java }}
2725
uses: actions/setup-java@v4
2826
with:
2927
java-version: ${{ matrix.java }}
3028
distribution: 'microsoft'
3129
- name: make gradle wrapper executable
32-
if: ${{ runner.os != 'Windows' }}
3330
run: chmod +x ./gradlew
3431
- name: build
3532
run: ./gradlew build
3633
- name: capture build artifacts
37-
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
38-
uses: actions/upload-artifact@v3
34+
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
35+
uses: actions/upload-artifact@v4
3936
with:
4037
name: Artifacts
4138
path: build/libs/

build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.5-SNAPSHOT'
2+
id 'fabric-loom' version '1.6-SNAPSHOT'
33
id 'maven-publish'
44
}
55

@@ -39,10 +39,6 @@ dependencies {
3939
// Fabric API. This is technically optional, but you probably want it anyway.
4040
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
4141

42-
// Uncomment the following line to enable the deprecated Fabric API modules.
43-
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
44-
45-
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
4642
}
4743

4844
processResources {
@@ -76,7 +72,7 @@ jar {
7672
// configure the maven publication
7773
publishing {
7874
publications {
79-
mavenJava(MavenPublication) {
75+
create("mavenJava", MavenPublication) {
8076
from components.java
8177
}
8278
}

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ org.gradle.parallel=true
55
# Fabric Properties
66
# check these on https://fabricmc.net/develop
77
minecraft_version=1.20.4
8-
yarn_mappings=1.20.4+build.1
9-
loader_version=0.15.0
8+
yarn_mappings=1.20.4+build.3
9+
loader_version=0.15.9
1010

1111
# Mod Properties
1212
mod_version=1.0.0
1313
maven_group=com.example
1414
archives_base_name=modid
1515

1616
# Dependencies
17-
fabric_version=0.91.1+1.20.4
17+
fabric_version=0.96.11+1.20.4

gradle/wrapper/gradle-wrapper.jar

-19.5 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
],
3232
"depends": {
33-
"fabricloader": ">=0.15.0",
33+
"fabricloader": ">=0.15.9",
3434
"minecraft": "~1.20.4",
3535
"java": ">=17",
3636
"fabric-api": "*"

0 commit comments

Comments
 (0)