blob: 7aa2d62b0f41b132a612ca7311a50324e78104cc [file] [log] [blame]
Eric Anderson3c3a8232019-09-07 08:18:57 -07001plugins {
Eric Anderson4215b802019-09-07 10:24:29 -07002 id "java"
Eric Anderson5b838e52019-09-07 09:27:32 -07003 id "maven-publish"
4
Eric Anderson3c3a8232019-09-07 08:18:57 -07005 id "com.google.protobuf"
Eric Andersone13221b2019-09-07 10:23:23 -07006 id "me.champeau.gradle.japicmp"
Eric Anderson61f19d72022-08-10 12:41:57 -07007 id "ru.vyarus.animalsniffer"
Kun Zhange83ac982015-10-29 16:31:29 -07008}
9
Eric Anderson3c3a8232019-09-07 08:18:57 -070010description = "gRPC: GRPCLB LoadBalancer plugin"
11
Kun Zhange83ac982015-10-29 16:31:29 -070012dependencies {
ZHANG Dapeng0044f8c2020-05-04 16:44:30 -070013 implementation project(':grpc-core'),
Kun Zhange83ac982015-10-29 16:31:29 -070014 project(':grpc-protobuf'),
15 project(':grpc-stub'),
Eric Andersonb06942d2022-06-13 12:09:30 -070016 libraries.protobuf.java,
17 libraries.protobuf.java.util,
Eric Anderson5642e012021-06-11 14:01:18 -070018 libraries.guava
Eric Andersonb06942d2022-06-13 12:09:30 -070019 runtimeOnly libraries.errorprone.annotations
20 compileOnly libraries.javax.annotation
ZHANG Dapeng0044f8c2020-05-04 16:44:30 -070021 testImplementation libraries.truth,
Eric Anderson29b84832023-05-16 12:10:13 -070022 testFixtures(project(':grpc-core'))
Eric Anderson61f19d72022-08-10 12:41:57 -070023
24 signature libraries.signature.java
Kun Zhange83ac982015-10-29 16:31:29 -070025}
26
27configureProtoCompilation()
Chengyuan Zhang26bff622020-01-31 15:44:30 -080028
Eric Anderson0ff9f372022-07-01 15:48:38 -070029tasks.named("javadoc").configure {
Chengyuan Zhang26bff622020-01-31 15:44:30 -080030 exclude 'io/grpc/grpclb/Internal*'
31}
Eric Anderson103c33e2020-03-31 17:33:25 -070032
Eric Anderson0ff9f372022-07-01 15:48:38 -070033tasks.named("jacocoTestReport").configure {
Eric Anderson103c33e2020-03-31 17:33:25 -070034 classDirectories.from = sourceSets.main.output.collect {
35 fileTree(dir: it,
36 exclude: [
37 '**/io/grpc/lb/v1/**',
38 ])
39 }
40}