Enforce JDK 16 as a minimum

This commit is contained in:
Anuken
2021-06-14 10:55:28 -04:00
parent 51040f9f3d
commit 1a03151966
3 changed files with 5 additions and 8 deletions

View File

@@ -196,12 +196,7 @@ allprojects{
tasks.withType(JavaCompile){
targetCompatibility = 8
//TODO fix dynamically, this is a hack
if(System.getProperty("user.name") == "anuke"){
sourceCompatibility = JavaVersion.VERSION_15
}else{
sourceCompatibility = JavaVersion.VERSION_14
}
sourceCompatibility = JavaVersion.VERSION_16
options.encoding = "UTF-8"
options.compilerArgs += ["-Xlint:deprecation"]
dependsOn clearCache