1plugins { 2 id "java-library" 3 id "maven-publish" 4 5 id "me.champeau.gradle.japicmp" 6 id "ru.vyarus.animalsniffer" 7} 8 9description = "gRPC: Testing" 10 11dependencies { 12 api project(':grpc-core'), 13 project(':grpc-stub'), 14 libraries.junit 15 // Only io.grpc.internal.testing.StatsTestUtils depends on opencensus_api, for internal use. 16 compileOnly libraries.opencensus.api 17 runtimeOnly project(":grpc-context") // Pull in newer version than census-api 18 19 testImplementation (libraries.mockito.core) { 20 // prefer our own versions instead of mockito's dependency 21 exclude group: 'org.hamcrest', module: 'hamcrest-core' 22 } 23 24 testImplementation project(':grpc-testing-proto'), 25 testFixtures(project(':grpc-core')) 26 27 signature libraries.signature.java 28 signature libraries.signature.android 29} 30 31tasks.named("javadoc").configure { exclude 'io/grpc/internal/**' } 32 33tasks.named("jacocoTestReport").configure { 34 classDirectories.from = sourceSets.main.output.collect { 35 fileTree(dir: it, 36 exclude: [ 37 '**/io/grpc/internal/testing/**', 38 ]) 39 } 40} 41