Updated Java 12 syntax.
This commit is contained in:
parent
3bd333b603
commit
cb07b2e21b
3 changed files with 56 additions and 47 deletions
|
@ -28,9 +28,10 @@ dependencies {
|
|||
implementation semverProcessor
|
||||
}
|
||||
|
||||
// For Java 12+
|
||||
tasks.withType(JavaCompile) {
|
||||
options.compilerArgs += [ "-Asemver.project.dir=$projectDir" ]
|
||||
if (JavaVersion.current().isJava12Compatible()) {
|
||||
options.compilerArgs += [ "-Asemver.project.dir=$projectDir" ]
|
||||
}
|
||||
}
|
||||
|
||||
task runExample(type: JavaExec) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue