mirror of https://github.com/grpc/grpc-java.git
alts: fix missing dependencies (#5307)
fix missing dependencies for grpc-alts by using java plugin
This commit is contained in:
parent
ddb16c5b4b
commit
83db004837
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue