Updated Java 12 syntax.

This commit is contained in:
Erik C. Thauvin 2019-07-26 16:01:13 -07:00
parent 3bd333b603
commit cb07b2e21b
3 changed files with 56 additions and 47 deletions

View file

@ -230,7 +230,9 @@ For example, if the properties file is in the Gradle project directory, add the
```gradle
tasks.withType(JavaCompile) {
options.compilerArgs += [ "-Asemver.project.dir=$projectDir" ]
if (JavaVersion.current().isJava12Compatible()) {
options.compilerArgs += [ "-Asemver.project.dir=$projectDir" ]
}
}
```