grpc-java/googleapis/build.gradle

37 lines
1003 B
Groovy

plugins {
id "java-library"
id "maven-publish"
id "ru.vyarus.animalsniffer"
}
description = 'gRPC: googleapis'
dependencies {
api project(':grpc-api')
implementation project(':grpc-alts'),
project(':grpc-core'),
project(':grpc-xds'),
libraries.guava.jre // JRE required by transitive protobuf-java-util
testImplementation project(':grpc-core').sourceSets.test.output
signature libraries.signature.java
}
publishing {
publications {
maven(MavenPublication) {
pom {
withXml {
// Since internal APIs are used, pin the version.
asNode().dependencies.'*'.findAll() { dep ->
dep.artifactId.text() in ['grpc-alts', 'grpc-xds']
}.each() { core ->
core.version*.value = "[" + core.version.text() + "]"
}
}
}
}
}
}