We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719c221 commit e13ac03Copy full SHA for e13ac03
build.gradle
@@ -197,6 +197,25 @@ subprojects {
197
}
198
199
200
+ plugins.withId("com.android.base") {
201
+ android {
202
+ lint {
203
+ abortOnError true
204
+ if (rootProject.hasProperty('failOnWarnings') && rootProject.failOnWarnings.toBoolean()) {
205
+ warningsAsErrors true
206
+ }
207
208
209
+ tasks.withType(JavaCompile).configureEach {
210
+ it.options.compilerArgs += [
211
+ "-Xlint:all"
212
+ ]
213
214
+ it.options.compilerArgs += ["-Werror"]
215
216
217
218
+
219
plugins.withId("java") {
220
dependencies {
221
testImplementation libraries.junit,
0 commit comments