Skip to content

Commit

Permalink
Fix issue with using runtime JDK of Java12
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed May 24, 2019
1 parent 8bbd3e3 commit a7cf299
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,10 @@ class PrecommitTasks {
// we need to defer this configuration since we don't know the runtime java version until execution time
targetCompatibility = project.runtimeJavaVersion.getMajorVersion()
if (project.runtimeJavaVersion > JavaVersion.VERSION_11) {
doLast {
project.logger.info(
"Forbidden APIs does not support java version past 11. Will use the signatures from 11 for ",
project.runtimeJavaVersion
)
}
project.logger.info(
"Forbidden APIs does not support java version past 11. Will use the signatures from 11 for ",
project.runtimeJavaVersion
)
targetCompatibility = JavaVersion.VERSION_11.getMajorVersion()
}
}
Expand Down

0 comments on commit a7cf299

Please sign in to comment.