Fixed compilation on JDK 8

This commit is contained in:
OLEGSHA 2021-01-01 20:25:47 +03:00 committed by GitHub
parent 6e6701d2e5
commit 00773d4f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,9 @@ java {
}
compileJava {
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
options.compilerArgs.addAll(['--release', '8'])
}
}
createPackages.dependsOn(build)