Skip to content

Commit

Permalink
increase java version to 21
Browse files Browse the repository at this point in the history
  • Loading branch information
wadoon committed Oct 23, 2024
1 parent 8e28439 commit f1d9bb9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ subprojects {
version = rootProject.version

java {
sourceCompatibility = 17
targetCompatibility = 17
sourceCompatibility = 21
targetCompatibility = 21
}

repositories {
Expand Down Expand Up @@ -100,18 +100,16 @@ subprojects {
tasks.withType(JavaCompile) {
// Setting UTF-8 as the java source encoding.
options.encoding = "UTF-8"
// Setting the release to Java 17
options.release = 17
// Setting the release to Java 21
options.release = 21
}

tasks.withType(Javadoc) {
failOnError = false
options.addBooleanOption 'Xdoclint:none', true
//options.verbose()
options.encoding = 'UTF-8'
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
options.addBooleanOption('html5', true)
}

tasks.withType(Test) {//Configure all tests
Expand Down

0 comments on commit f1d9bb9

Please sign in to comment.