mirror of https://github.com/grpc/grpc-java.git
68 lines
1.7 KiB
Groovy
68 lines
1.7 KiB
Groovy
plugins {
|
|
id "java-library"
|
|
id "maven-publish"
|
|
|
|
id "me.champeau.gradle.japicmp"
|
|
id "me.champeau.gradle.jmh"
|
|
id "ru.vyarus.animalsniffer"
|
|
}
|
|
|
|
description = 'gRPC: Core'
|
|
|
|
evaluationDependsOn(project(':grpc-context').path)
|
|
evaluationDependsOn(project(':grpc-api').path)
|
|
|
|
dependencies {
|
|
api project(':grpc-api')
|
|
implementation libraries.gson,
|
|
libraries.android_annotations,
|
|
libraries.animalsniffer_annotations,
|
|
libraries.errorprone
|
|
guavaDependency 'implementation'
|
|
perfmarkDependency 'implementation'
|
|
testImplementation project(':grpc-context').sourceSets.test.output,
|
|
project(':grpc-api').sourceSets.test.output,
|
|
project(':grpc-testing'),
|
|
project(':grpc-grpclb')
|
|
testImplementation (libraries.guava_testlib) {
|
|
exclude group: 'junit', module: 'junit'
|
|
}
|
|
|
|
testRuntimeOnly project(':grpc-census')
|
|
|
|
jmh project(':grpc-testing')
|
|
|
|
signature "org.codehaus.mojo.signature:java17:1.0@signature"
|
|
signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature"
|
|
}
|
|
|
|
javadoc {
|
|
exclude 'io/grpc/internal/**'
|
|
exclude 'io/grpc/inprocess/Internal*'
|
|
// Disabled until kinda stable.
|
|
exclude 'io/grpc/perfmark/**'
|
|
}
|
|
|
|
animalsniffer {
|
|
// Don't check sourceSets.jmh
|
|
sourceSets = [
|
|
sourceSets.main,
|
|
sourceSets.test
|
|
]
|
|
}
|
|
|
|
import net.ltgt.gradle.errorprone.CheckSeverity
|
|
|
|
plugins.withId("java") {
|
|
compileJmhJava {
|
|
// This project targets Java 7 (no method references)
|
|
options.errorprone.check("UnnecessaryAnonymousClass", CheckSeverity.OFF)
|
|
}
|
|
}
|
|
|
|
task versionFile() {
|
|
doLast {
|
|
new File(buildDir, "version").write("${project.version}\n")
|
|
}
|
|
}
|