Skip to content

Commit

Permalink
bom: fix wrong artifact for grpc-compiler (protoc-gen-grpc-java) (grp…
Browse files Browse the repository at this point in the history
  • Loading branch information
creamsoup authored Mar 11, 2019
1 parent 3c24dc6 commit 4e289de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publishing {

pom.withXml {
// Generate bom using subprojects
def internalProjects = [project.name, 'grpc-xds', 'grpc-gae-interop-testing-jdk8']
def internalProjects = [project.name, 'grpc-xds', 'grpc-gae-interop-testing-jdk8', 'grpc-compiler']

def dependencyManagement = asNode().appendNode('dependencyManagement')
def dependencies = dependencyManagement.appendNode('dependencies')
Expand All @@ -21,6 +21,11 @@ publishing {
dependencyNode.appendNode('artifactId', subproject.name)
dependencyNode.appendNode('version', subproject.version)
}
// add protoc gen (produced by grpc-compiler with different artifact name)
def dependencyNode = dependencies.appendNode('dependency')
dependencyNode.appendNode('groupId', project.group)
dependencyNode.appendNode('artifactId', 'protoc-gen-grpc-java')
dependencyNode.appendNode('version', project.version)
}
}
}
Expand Down

0 comments on commit 4e289de

Please sign in to comment.