Skip to content

Commit

Permalink
chore: fix gradle java version
Browse files Browse the repository at this point in the history
  • Loading branch information
Erb3 committed Apr 23, 2024
1 parent 35fade0 commit b72443b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ processResources {

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 17
it.options.release = 21
}

java {
def javaVersion = JavaVersion.toVersion(17)
def javaVersion = JavaVersion.toVersion(21)

if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(17)
toolchain.languageVersion = JavaLanguageVersion.of(21)
}

archivesBaseName = project.archives_base_name
Expand Down

0 comments on commit b72443b

Please sign in to comment.