I tried to add the following to the root build.gradle file:
subprojects {
gradle.projectsEvaluated {
tasks.withType(Compile) {
For everyone using gradle.kts use the following to match up with the simple build.gradle file
build.gradle.kts
afterEvaluate {
tasks.withType(JavaCompile::class) {
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Xlint:deprecation")
}
}
build.gradle
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}