Skip to content

Commit 85d81f0

Browse files
committed
build.gradle : resolved review comments, moving the changes with the other plugin.withId blocks
1 parent ec072b9 commit 85d81f0

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

build.gradle

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,6 @@ subprojects {
2323
group = "io.grpc"
2424
version = "1.77.0-SNAPSHOT" // CURRENT_GRPC_VERSION
2525

26-
plugins.withId("com.android.base") {
27-
android {
28-
lint {
29-
abortOnError true
30-
if (rootProject.hasProperty('failOnWarnings') && rootProject.failOnWarnings.toBoolean()) {
31-
warningsAsErrors true
32-
}
33-
}
34-
}
35-
tasks.withType(JavaCompile).configureEach {
36-
it.options.compilerArgs += [
37-
"-Xlint:all"
38-
]
39-
if (rootProject.hasProperty('failOnWarnings') && rootProject.failOnWarnings.toBoolean()) {
40-
it.options.compilerArgs += ["-Werror"]
41-
}
42-
}
43-
}
44-
4526
repositories {
4627
maven { // The google mirror is less flaky than mavenCentral()
4728
url = "https://maven-central.storage-download.googleapis.com/maven2/"
@@ -216,6 +197,25 @@ subprojects {
216197
}
217198
}
218199

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+
if (rootProject.hasProperty('failOnWarnings') && rootProject.failOnWarnings.toBoolean()) {
214+
it.options.compilerArgs += ["-Werror"]
215+
}
216+
}
217+
}
218+
219219
plugins.withId("java") {
220220
dependencies {
221221
testImplementation libraries.junit,

0 commit comments

Comments
 (0)