Skip to content

Commit

Permalink
Merge branch 'master' into renovate/gradle-8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed authored Jul 11, 2024
2 parents d2ad2b9 + 598d0c1 commit 9c0ab18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/resources/common/gradle/tasks.gradle.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ task unzipWAR(type: Copy, group: "CAS", description: "Explodes the CAS web appli
task verifyRequiredJavaVersion {
def currentVersion = org.gradle.api.JavaVersion.current()
logger.info "Checking current Java version ${currentVersion} for required Java version ${project.targetCompatibility}"
if (!currentVersion.name.equalsIgnoreCase("${project.targetCompatibility}")) {
def targetVersion = JavaVersion.toVersion(project.targetCompatibility)
if (!currentVersion.isCompatibleWith(targetVersion)) {
logger.warn("Careful: Current Java version ${currentVersion} does not match required Java version ${project.targetCompatibility}")
}
}
Expand Down

0 comments on commit 9c0ab18

Please sign in to comment.