Skip to content

Commit

Permalink
Updated to JDK 21
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed May 17, 2024
1 parent 0f1bd47 commit 4bd728d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ plugins {
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

def ENV = System.getenv()
version = "${project_version}-${ENV.GITHUB_RUN_NUMBER ? 'build.' + ENV.GITHUB_RUN_NUMBER : 'local.' + Instant.now().epochSecond}"
Expand Down Expand Up @@ -37,11 +37,11 @@ test {

compileJava {
options.encoding = "UTF-8"
options.release.set(17)
options.release.set(21)
}

java {
sourceCompatibility = targetCompatibility = '17'
sourceCompatibility = targetCompatibility = '21'
withSourcesJar()
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Wed Dec 18 16:24:02 EET 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down

0 comments on commit 4bd728d

Please sign in to comment.