blob: 60b971a5a5666fef0bb49a9ed13a36093fa099e9 [file] [log] [blame]
plugins {
id "java"
id "maven-publish"
id "com.google.protobuf"
id "jacoco"
id "ru.vyarus.animalsniffer"
}
description = "gRPC: RouteLookupService Loadbalancing plugin"
evaluationDependsOn(project(':grpc-core').path)
dependencies {
implementation project(':grpc-core'),
project(':grpc-protobuf'),
project(':grpc-stub'),
libraries.auto.value.annotations,
libraries.guava
annotationProcessor libraries.auto.value
compileOnly libraries.javax.annotation
testImplementation libraries.truth,
project(':grpc-grpclb'),
project(':grpc-testing'),
project(':grpc-testing-proto'),
project(':grpc-core').sourceSets.test.output // for FakeClock
signature "org.codehaus.mojo.signature:java17:1.0@signature"
}
[compileJava].each() {
it.options.compilerArgs += [
// only has AutoValue annotation processor
"-Xlint:-processing",
]
appendToProperty(
it.options.errorprone.excludedPaths,
".*/build/generated/sources/annotationProcessor/java/.*",
"|")
}
javadoc {
// Do not publish javadoc since currently there is no public API.
failOnError false // no public or protected classes found to document
exclude 'io/grpc/lookup/v1/**'
exclude 'io/grpc/rls/internal/**'
exclude 'io/grpc/rls/Internal*'
}
jacocoTestReport {
classDirectories.from = sourceSets.main.output.collect {
fileTree(dir: it, exclude: ['**/io/grpc/lookup/**'])
}
}
configureProtoCompilation()