Updated Java 12 syntax.
This commit is contained in:
parent
3bd333b603
commit
cb07b2e21b
3 changed files with 56 additions and 47 deletions
|
@ -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" ]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue