alts: fix missing dependencies (#5307)

fix missing dependencies for grpc-alts by using java plugin
This commit is contained in:
Jihun Cho 2019-02-01 11:02:16 -08:00 committed by GitHub
parent ddb16c5b4b
commit 83db004837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -80,7 +80,10 @@ shadowJar {
publishing {
publications {
maven(MavenPublication) {
// use shadowJar and remove the original Jar
artifact shadowJar
def originalJar = artifacts.find { dep -> dep.classifier == 'original'}
artifacts.remove(originalJar)
pom.withXml {
// Swap our dependency to grpc-netty-shaded. Projects depending on this via

View File

@ -343,8 +343,7 @@ subprojects {
publications {
// do not use mavenJava, as java plugin will modify it via "magic"
maven(MavenPublication) {
if (!project.name.contains("grpc-netty-shaded") && !name.contains("grpc-alts")
&& !name.contains("grpc-compiler")) {
if (project.name != 'grpc-netty-shaded') {
from components.java
}