Compilation for Android on Java 9+
This commit is contained in:
@@ -180,6 +180,15 @@ allprojects{
|
||||
}
|
||||
}
|
||||
|
||||
//compile with java 8 compatibility for everything except the annotati project
|
||||
configure(subprojects - project(":annotations")){
|
||||
tasks.withType(JavaCompile){
|
||||
if(JavaVersion.current() != JavaVersion.VERSION_1_8){
|
||||
options.compilerArgs.addAll(['--release', '8'])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project(":desktop"){
|
||||
apply plugin: "java"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user