Updated Java 12 syntax.
This commit is contained in:
parent
d17afba52e
commit
9737f66f64
1 changed files with 3 additions and 2 deletions
|
@ -23,9 +23,10 @@ dependencies {
|
||||||
implementation semverProcessor
|
implementation semverProcessor
|
||||||
}
|
}
|
||||||
|
|
||||||
// For Java 12+
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.compilerArgs += [ "-Asemver.project.dir=$projectDir" ]
|
if (JavaVersion.current().isJava12Compatible()) {
|
||||||
|
options.compilerArgs += [ "-Asemver.project.dir=$projectDir" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue