I tried to add the following to the root build.gradle file:
build.gradle
subprojects { gradle.projectsEvaluated { tasks.withType(Compile) {
For deprecation, you can now use this in gradle kotlin script, which is better than modifying compilerArgs because it's type-safe:
compilerArgs
tasks.withType { options.isDeprecation = true }