Skip to content

Commit

Permalink
Java Version needs to be set also for test classes compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
AB-xdev committed Jan 11, 2024
1 parent f2f683e commit feee51b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ listProductsReleases {
sinceBuild = "223.*"
}

// JAVA compatibility
compileJava {
// Configure compileJava AND compileTestJava
// https://docs.gradle.org/current/dsl/org.gradle.api.tasks.compile.JavaCompile.html
tasks.withType(JavaCompile).configureEach {
// JAVA compatibility
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
Expand Down

0 comments on commit feee51b

Please sign in to comment.