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 {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
|
// use shadowJar and remove the original Jar
|
||||||
artifact shadowJar
|
artifact shadowJar
|
||||||
|
def originalJar = artifacts.find { dep -> dep.classifier == 'original'}
|
||||||
|
artifacts.remove(originalJar)
|
||||||
|
|
||||||
pom.withXml {
|
pom.withXml {
|
||||||
// Swap our dependency to grpc-netty-shaded. Projects depending on this via
|
// Swap our dependency to grpc-netty-shaded. Projects depending on this via
|
||||||
|
|
|
||||||
|
|
@ -343,8 +343,7 @@ subprojects {
|
||||||
publications {
|
publications {
|
||||||
// do not use mavenJava, as java plugin will modify it via "magic"
|
// do not use mavenJava, as java plugin will modify it via "magic"
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
if (!project.name.contains("grpc-netty-shaded") && !name.contains("grpc-alts")
|
if (project.name != 'grpc-netty-shaded') {
|
||||||
&& !name.contains("grpc-compiler")) {
|
|
||||||
from components.java
|
from components.java
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue