Skip to content

Commit 42e66ea

Browse files
committed
Update to 1.18 release
- Update Minecraft version and Yarn mappings - Bump mod Java requirement to 17 - Set build run Java version to 17 - Set java compatibility to 17
1 parent e48fe58 commit 42e66ea

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
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

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

99
archivesBaseName = project.archives_base_name
1010
version = project.mod_version + '+' + project.mod_minecraft_version + getExtraBuildMetadata()
@@ -65,8 +65,8 @@ processResources {
6565
}
6666

6767
tasks.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

7272
java {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"fabricloader": ">=0.11.7",
3535
"fabric": "*",
3636
"minecraft": "1.18.x",
37-
"java": ">=16"
37+
"java": ">=17"
3838
},
3939

4040
"custom": {

0 commit comments

Comments
 (0)