Skip to content

Commit

Permalink
Target Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
pop4959 committed Apr 24, 2024
1 parent d3956d6 commit cb3aee6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
cache: 'gradle'
- name: Build
run: ./gradlew build
Expand Down
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import java.io.ByteArrayOutputStream
plugins {
id("java-library")
id("maven-publish")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("io.github.goooler.shadow") version "8.1.7"
}

subprojects {
plugins.apply("java-library")
plugins.apply("maven-publish")
plugins.apply("com.github.johnrengelman.shadow")
plugins.apply("io.github.goooler.shadow")

group = "${project.property("group")}"
version = "${project.property("version")}.${commitsSinceLastTag()}"
Expand All @@ -21,15 +21,15 @@ subprojects {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
}
withSourcesJar()
}

tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
options.release = 17
options.release = 21
options.compilerArgs.add("-Xlint:none")
}
jar {
Expand Down
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"fabricloader": ">=0.14.21",
"fabric": "*",
"minecraft": ">=1.20.0",
"java": ">=17"
"java": ">=21"
},
"custom": {
"modmenu": {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.jvmargs=-Xmx2G
group=org.popcraft
artifactName=Chunky
version=1.3
version=1.4
description=Pre-generates chunks, quickly, efficiently, and safely
github=https://github.com/pop4959/Chunky
author=pop4959

0 comments on commit cb3aee6

Please sign in to comment.