Skip to content

Commit

Permalink
Remove scope from managed dependencies in BOM
Browse files Browse the repository at this point in the history
This commit removes the scope information from the managed dependencies
in the Reactor BOM.

See reactorgh-677
  • Loading branch information
bclozel committed Oct 16, 2019
1 parent 94ee491 commit bc05ed8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def customizePom(pom, gradleProject) {
if (generatedPom.dependencies.size > 0) {
asNode().appendNode('dependencyManagement', asNode().dependencies)
asNode().dependencies.replaceNode {}
asNode().dependencyManagement.first().dependencies.first().each {
it.remove(it.scope.first())
}
}
}

Expand Down Expand Up @@ -152,7 +155,7 @@ def customizePom(pom, gradleProject) {
name = 'Sergei Egorov'
email = 'segorov at pivotal.io'
}

developer {
id = 'akarnokd'
name = 'David Karnok'
Expand Down

0 comments on commit bc05ed8

Please sign in to comment.