Skip to content

Commit

Permalink
build: log which java
Browse files Browse the repository at this point in the history
  • Loading branch information
mate-from-mattr committed Dec 16, 2024
1 parent 9a880fe commit 2971b7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wrappers/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,13 @@ publishing {
sourceCompatibility = JavaVersion.VERSION_11

if (project.hasProperty('targetVersion') && project.targetVersion == '17') {
println "Targetting java 17"
targetCompatibility = JavaVersion.VERSION_17
} else if (project.hasProperty('targetVersion') && project.targetVersion == '21') {
println "Targetting java 21"
targetCompatibility = JavaVersion.VERSION_21
} else {
println "Falling back to java 11"
targetCompatibility = JavaVersion.VERSION_11 // Default to 11
}

0 comments on commit 2971b7d

Please sign in to comment.