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