This commit is contained in:
Sangamesh 2025-07-23 13:37:11 +05:30 committed by GitHub
commit fe454e35f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

View File

@ -23,6 +23,25 @@ subprojects {
group = "io.grpc" group = "io.grpc"
version = "1.75.0-SNAPSHOT" // CURRENT_GRPC_VERSION version = "1.75.0-SNAPSHOT" // CURRENT_GRPC_VERSION
plugins.withId("com.android.base") {
android {
lint {
abortOnError true
if (rootProject.hasProperty('failOnWarnings') && rootProject.failOnWarnings.toBoolean()) {
warningsAsErrors true
}
}
}
tasks.withType(JavaCompile).configureEach {
it.options.compilerArgs += [
"-Xlint:all"
]
if (rootProject.hasProperty('failOnWarnings') && rootProject.failOnWarnings.toBoolean()) {
it.options.compilerArgs += ["-Werror"]
}
}
}
repositories { repositories {
maven { // The google mirror is less flaky than mavenCentral() maven { // The google mirror is less flaky than mavenCentral()
url "https://maven-central.storage-download.googleapis.com/maven2/" url "https://maven-central.storage-download.googleapis.com/maven2/"