Compilation for Android on Java 9+

This commit is contained in:
Anuken
2020-08-14 19:45:22 -04:00
parent 75606baf6a
commit b57fb47855
4 changed files with 22 additions and 1 deletions
+9
View File
@@ -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"