Fixed compilation on JDK 8
This commit is contained in:
parent
6e6701d2e5
commit
00773d4f8b
@ -139,7 +139,9 @@ java {
|
||||
}
|
||||
|
||||
compileJava {
|
||||
options.compilerArgs.addAll(['--release', '8'])
|
||||
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
|
||||
options.compilerArgs.addAll(['--release', '8'])
|
||||
}
|
||||
}
|
||||
|
||||
createPackages.dependsOn(build)
|
||||
|
Reference in New Issue
Block a user