Skip to content

Commit

Permalink
Fix dependency listing in pom
Browse files Browse the repository at this point in the history
  • Loading branch information
saviukd authored and saviukd committed Apr 17, 2019
1 parent ec74164 commit 2ade674
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ publishing {

//The publication doesn't know about our dependencies, so we have to manually add them to the pom
pom.withXml {
//Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each
configurations.compile.allDependencies.each {
//Iterate over the implementation dependencies (we don't want the test ones), adding a <dependency> node for each
def dependenciesNode = asNode().appendNode('dependencies')
configurations.implementation.allDependencies.each {
if (it.name != 'unspecified') {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
Expand Down

0 comments on commit 2ade674

Please sign in to comment.