unify lint options for all modules

This commit is contained in:
Hannes Achleitner 2019-01-27 12:54:56 +01:00
parent e9c10cdaa8
commit 0663e422a6
3 changed files with 6 additions and 15 deletions

View File

@ -214,10 +214,3 @@ task copyTextFiles(type: Copy) {
preBuild.dependsOn filterAbout, copyTextFiles
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint" << "-Xlint:-deprecation" << "-Xlint:-serial"
}
}
}

View File

@ -16,6 +16,12 @@ allprojects {
jcenter()
maven { url "https://jitpack.io" }
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint" << "-Xlint:-deprecation" << "-Xlint:-serial"
}
}
}
// Disable predex if requested (we can"t predex in Circle CI

View File

@ -93,11 +93,3 @@ tasks.withType(Test) {
displayGranularity 2
}
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint" << "-Xlint:-deprecation" << "-Xlint:-serial"
}
}
}