Disable preview features
This commit is contained in:
12
build.gradle
12
build.gradle
@@ -219,18 +219,13 @@ configure(project(":annotations")){
|
|||||||
//compile with java 8 compatibility for everything except the annotation project
|
//compile with java 8 compatibility for everything except the annotation project
|
||||||
configure(subprojects - project(":annotations")){
|
configure(subprojects - project(":annotations")){
|
||||||
tasks.withType(JavaCompile){
|
tasks.withType(JavaCompile){
|
||||||
options.compilerArgs.addAll(['--release', '8', '--enable-preview'])
|
options.compilerArgs.addAll(['--release', '8'])
|
||||||
|
|
||||||
doFirst{
|
|
||||||
options.compilerArgs = options.compilerArgs.findAll{it != '--enable-preview' }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(Javadoc){
|
tasks.withType(Javadoc){
|
||||||
options{
|
options{
|
||||||
addStringOption('Xdoclint:none', '-quiet')
|
addStringOption('Xdoclint:none', '-quiet')
|
||||||
addBooleanOption('-enable-preview', true)
|
addStringOption('-release', '16')
|
||||||
addStringOption('-release', '14')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -297,9 +292,8 @@ project(":core"){
|
|||||||
|
|
||||||
kapt{
|
kapt{
|
||||||
javacOptions{
|
javacOptions{
|
||||||
option("-source", "14")
|
option("-source", "16")
|
||||||
option("-target", "1.8")
|
option("-target", "1.8")
|
||||||
option("--enable-preview")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,4 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user