Disable preview features

This commit is contained in:
Anuken 2021-06-14 10:59:38 -04:00
parent 1a03151966
commit 2a451aa41f
2 changed files with 3 additions and 11 deletions

View File

@ -219,18 +219,13 @@ configure(project(":annotations")){
//compile with java 8 compatibility for everything except the annotation project
configure(subprojects - project(":annotations")){
tasks.withType(JavaCompile){
options.compilerArgs.addAll(['--release', '8', '--enable-preview'])
doFirst{
options.compilerArgs = options.compilerArgs.findAll{it != '--enable-preview' }
}
options.compilerArgs.addAll(['--release', '8'])
}
tasks.withType(Javadoc){
options{
addStringOption('Xdoclint:none', '-quiet')
addBooleanOption('-enable-preview', true)
addStringOption('-release', '14')
addStringOption('-release', '16')
}
}
}
@ -297,9 +292,8 @@ project(":core"){
kapt{
javacOptions{
option("-source", "14")
option("-source", "16")
option("-target", "1.8")
option("--enable-preview")
}
}

View File

@ -10,6 +10,4 @@ kapt.include.compile.classpath=false
kotlin.stdlib.default.dependency=false
#needed for android compilation
android.useAndroidX=true
#suppresses a warning I don't care about
android.disableAutomaticComponentCreation=true
archash=3926b785320fea0cd9ca597f6bfa9071263a5464