Skip to content

Commit

Permalink
Fix generated POMs to mark Hystrix dependencies as 'compile', not 'ru…
Browse files Browse the repository at this point in the history
…ntime'
  • Loading branch information
Matt Jacobs committed Oct 15, 2015
1 parent a3b072a commit 55ce102
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,25 @@ subprojects {
}
}


idea {
module {
// include 'provided' dependencies on the classpath
scopes.COMPILE.plus += [configurations.provided]
}
}

publishing {
publications {
nebula(MavenPublication) {
pom.withXml {
configurations.compile.resolvedConfiguration.firstLevelModuleDependencies.each { dep ->
asNode().dependencies[0].dependency.find {
it.artifactId[0].text() == dep.moduleName &&
it.groupId[0].text() == dep.moduleGroup
}.scope[0].value = 'compile'
}
}
}
}
}
}

0 comments on commit 55ce102

Please sign in to comment.