Skip to content

Commit

Permalink
Adding API dependencies to transitive
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Mar 4, 2021
1 parent af6f055 commit 8f5eb2d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ publishing {
dependencyNode.appendNode("version", it.version)
dependencyNode.appendNode("scope", "runtime")
}
project.configurations.api
.allDependencies
.findAll { it.name != "unspecified" }
.each {
def dependencyNode = dependenciesNode.appendNode("dependency")
dependencyNode.appendNode("groupId", it.group)
dependencyNode.appendNode("artifactId", it.name)
dependencyNode.appendNode("version", it.version)
dependencyNode.appendNode("scope", "compile")
}
}
}
}
Expand Down

0 comments on commit 8f5eb2d

Please sign in to comment.