File tree Expand file tree Collapse file tree 7 files changed +21
-28
lines changed
Expand file tree Collapse file tree 7 files changed +21
-28
lines changed Original file line number Diff line number Diff 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/
Original file line number Diff line number Diff line change 11plugins {
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
4844processResources {
7672// configure the maven publication
7773publishing {
7874 publications {
79- mavenJava( MavenPublication ) {
75+ create( " mavenJava " , MavenPublication ) {
8076 from components. java
8177 }
8278 }
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ org.gradle.parallel=true
55# Fabric Properties
66# check these on https://fabricmc.net/develop
77minecraft_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
1212mod_version =1.0.0
1313maven_group =com.example
1414archives_base_name =modid
1515
1616# Dependencies
17- fabric_version =0.91.1 +1.20.4
17+ fabric_version =0.96.11 +1.20.4
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =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
44networkTimeout =10000
55validateDistributionUrl =true
66zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343%JAVA_EXE% -version > NUL 2 >& 1
4444if %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
5252goto fail
5353
@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757
5858if 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
6666goto fail
6767
Original file line number Diff line number Diff line change 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" : " *"
You can’t perform that action at this time.
0 commit comments