File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 - uses : actions/checkout@v2
1010 - name : Validate Gradle wrapper
1111 uses : gradle/wrapper-validation-action@v1
12- - name : Set up JDK 16
12+ - name : Set up JDK 17
1313 uses : actions/setup-java@v2
1414 with :
15- distribution : adopt
16- java-version : 16
15+ distribution : temurin
16+ java-version : 17
1717 check-latest : true
1818 - name : Build artifacts
1919 run : ./gradlew build --stacktrace
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ plugins {
33 id ' maven-publish'
44}
55
6- sourceCompatibility = JavaVersion . VERSION_16
7- targetCompatibility = JavaVersion . VERSION_16
6+ sourceCompatibility = JavaVersion . VERSION_17
7+ targetCompatibility = JavaVersion . VERSION_17
88
99archivesBaseName = project. archives_base_name
1010version = project. mod_version + ' +' + project. mod_minecraft_version + getExtraBuildMetadata()
@@ -65,8 +65,8 @@ processResources {
6565}
6666
6767tasks. withType(JavaCompile ). configureEach {
68- // Minecraft 1.17 (21w19a ) upwards uses Java 16 .
69- it. options. release. set(16 )
68+ // Minecraft 1.18 (1.18-pre2 ) upwards uses Java 17 .
69+ it. options. release. set(17 )
7070}
7171
7272java {
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ org.gradle.jvmargs = -Xmx1G
33
44# Fabric Properties
55 loom_version = 0.10-SNAPSHOT
6- minecraft_version = 21w42a
7- yarn_mappings = 21w42a +build.1
6+ minecraft_version = 1.18
7+ yarn_mappings = 1.18 +build.1
88 loader_version = 0.12.8
99
1010# Mod Properties
Original file line number Diff line number Diff line change 3434 "fabricloader" : " >=0.11.7" ,
3535 "fabric" : " *" ,
3636 "minecraft" : " 1.18.x" ,
37- "java" : " >=16 "
37+ "java" : " >=17 "
3838 },
3939
4040 "custom" : {
You can’t perform that action at this time.
0 commit comments