Enforce JDK 16 as a minimum
This commit is contained in:
@@ -196,12 +196,7 @@ allprojects{
|
|||||||
|
|
||||||
tasks.withType(JavaCompile){
|
tasks.withType(JavaCompile){
|
||||||
targetCompatibility = 8
|
targetCompatibility = 8
|
||||||
//TODO fix dynamically, this is a hack
|
sourceCompatibility = JavaVersion.VERSION_16
|
||||||
if(System.getProperty("user.name") == "anuke"){
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_15
|
|
||||||
}else{
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_14
|
|
||||||
}
|
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
options.compilerArgs += ["-Xlint:deprecation"]
|
options.compilerArgs += ["-Xlint:deprecation"]
|
||||||
dependsOn clearCache
|
dependsOn clearCache
|
||||||
|
|||||||
@@ -10,4 +10,6 @@ kapt.include.compile.classpath=false
|
|||||||
kotlin.stdlib.default.dependency=false
|
kotlin.stdlib.default.dependency=false
|
||||||
#needed for android compilation
|
#needed for android compilation
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
|
#suppresses a warning I don't care about
|
||||||
|
android.disableAutomaticComponentCreation=true
|
||||||
archash=3926b785320fea0cd9ca597f6bfa9071263a5464
|
archash=3926b785320fea0cd9ca597f6bfa9071263a5464
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if(JavaVersion.current().ordinal() < JavaVersion.VERSION_14.ordinal()){
|
if(JavaVersion.current().ordinal() < JavaVersion.VERSION_16.ordinal()){
|
||||||
throw new GradleException("!!! YOU MUST USE JAVA 14 OR ABOVE TO COMPILE AND RUN MINDUSTRY !!! Read the README. Your version: ${System.properties["java.version"]}")
|
throw new Exception("!!! YOU MUST USE JAVA 16 OR ABOVE TO COMPILE AND RUN MINDUSTRY !!! Read the README. Your version: ${System.properties["java.version"]}")
|
||||||
}
|
}
|
||||||
|
|
||||||
include 'desktop', 'core', 'server', 'ios', 'annotations', 'tools', 'tests'
|
include 'desktop', 'core', 'server', 'ios', 'annotations', 'tools', 'tests'
|
||||||
|
|||||||
Reference in New Issue
Block a user