Skip to content

Commit

Permalink
apply pom transformation to fix the scope of the compile dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jnizet committed Jun 8, 2016
1 parent 3ef9116 commit e1663d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ subprojects { subProject ->
rootNode.children().each {
root.append(it)
}

asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each { it.scope*.value = 'compile'}
}
}
}
Expand Down

0 comments on commit e1663d4

Please sign in to comment.