Skip to content

Commit

Permalink
Update to Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
Malfrador committed Feb 27, 2024
1 parent 467c102 commit 003f944
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.github.goooler.shadow") version "8.1.5" // Use fork until shadow has updated to Java 21
}

repositories {
Expand Down Expand Up @@ -40,9 +40,9 @@ dependencies {
}

group = "de.erethon"
version = "1.3.0"
version = "1.3.1"
description = "Bedrock"
java.sourceCompatibility = JavaVersion.VERSION_17
java.sourceCompatibility = JavaVersion.VERSION_21

publishing {
publications.create<MavenPublication>("maven") {
Expand All @@ -69,6 +69,7 @@ tasks {

tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
options.release.set(21)
options.compilerArgs.add("--enable-preview")
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 003f944

Please sign in to comment.