Skip to content

Commit

Permalink
Update to 1.18 release
Browse files Browse the repository at this point in the history
- Update Minecraft version and Yarn mappings
- Bump mod Java requirement to 17
- Set build run Java version to 17
- Set java compatibility to 17
  • Loading branch information
PepperCode1 committed Dec 4, 2021
1 parent e48fe58 commit 42e66ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
- uses: actions/checkout@v2
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 16
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 16
distribution: temurin
java-version: 17
check-latest: true
- name: Build artifacts
run: ./gradlew build --stacktrace
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ plugins {
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version + '+' + project.mod_minecraft_version + getExtraBuildMetadata()
Expand Down Expand Up @@ -65,8 +65,8 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
// Minecraft 1.17 (21w19a) upwards uses Java 16.
it.options.release.set(16)
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release.set(17)
}

java {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ org.gradle.jvmargs = -Xmx1G

# Fabric Properties
loom_version = 0.10-SNAPSHOT
minecraft_version = 21w42a
yarn_mappings = 21w42a+build.1
minecraft_version = 1.18
yarn_mappings = 1.18+build.1
loader_version = 0.12.8

# Mod Properties
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 @@ -34,7 +34,7 @@
"fabricloader": ">=0.11.7",
"fabric": "*",
"minecraft": "1.18.x",
"java": ">=16"
"java": ">=17"
},

"custom": {
Expand Down

0 comments on commit 42e66ea

Please sign in to comment.