1description = "gRPC: Testing" 2 3dependencies { 4 compile project(':grpc-core'), 5 project(':grpc-stub'), 6 libraries.junit 7 compile (libraries.mockito) { 8 // prefer 1.3 from JUnit instead of 1.1 9 exclude group: 'org.hamcrest', module: 'hamcrest-core' 10 } 11 // Use compileOnly to avoid dependencyConvergence problem with the Guava 12 // pulled in via Truth, for users that don't use Truth. Truth requires a 13 // more up-to-date Guava than we support elsewhere, which would trigger 14 // convergence failures in tests that only our users could resolve. Using 15 // compileOnly means only users using Truth would have the problem and 16 // they'd have to resolve it like normal anyway. 17 compileOnly libraries.truth 18 19 testCompile project(':grpc-testing-proto'), 20 project(':grpc-core').sourceSets.test.output 21} 22 23javadoc { exclude 'io/grpc/internal/**' } 24