Skip to content

Commit

Permalink
add javaVersion property
Browse files Browse the repository at this point in the history
  • Loading branch information
munishchouhan committed May 27, 2024
1 parent 315f12f commit 01aee34
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ compileJava {
options.release.set(11)
}

tasks.withType(GroovyCompile) {
sourceCompatibility = '11'
targetCompatibility = '11'
}
// Load the javaVersion property from gradle.properties
def javaVersion = project.hasProperty('javaVersion') ? project.property('javaVersion') : '17'

// Configure the Groovy compile tasks using the javaVersion property
tasks.withType(GroovyCompile) {
sourceCompatibility = '17'
targetCompatibility = '17'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}

group = 'io.seqera'

0 comments on commit 01aee34

Please sign in to comment.