Permalink
Browse files

Map the groovy dependency to the maven “compile” scope in our publish…

…ed POMs.
  • Loading branch information...
1 parent 133cfbb commit 830d3743270ffa0b1bf5e189a56b7c0b2e57ff74 @ldaley ldaley committed Oct 24, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 build.gradle
View
@@ -298,6 +298,14 @@ subprojects { project ->
poms*.whenConfigured {
pomModifications*.call(it)
}
+
+ // Map the groovy gradle configuration to the “compile” scope in our published POMs
+ def groovyConfiguration = project.configurations.findByName("groovy")
+ if (groovyConfiguration) {
+ poms.each {
+ it.scopeMappings.addMapping(1, groovyConfiguration, "compile")
+ }
+ }
}
// Remove any dependencies that shouldn't be included in the POM

0 comments on commit 830d374

Please sign in to comment.