mirror of https://github.com/grpc/grpc-java.git
Merge 0fff2643df
into 6ff8ecac09
This commit is contained in:
commit
fe454e35f0
19
build.gradle
19
build.gradle
|
@ -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/"
|
||||||
|
|
Loading…
Reference in New Issue