File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -198,3 +198,26 @@ findbugsMain {
198198 }
199199}
200200*/
201+
202+ // from https://discuss.gradle.org/t/maven-publish-plugin-generated-pom-making-dependency-scope-runtime/7494/10
203+
204+ publishing. publications. all {
205+ pom. withXml {
206+ asNode(). dependencies. ' *' . findAll() {
207+ it. scope. text() == ' runtime' && project. configurations. compile. allDependencies. find { dep ->
208+ dep. name == it. artifactId. text()
209+ }
210+ }. each { it. scope* . value = ' compile' }
211+
212+ asNode(). developers. ' *' . findAll() {
213+ it. id. text() == ' benjchristensen'
214+ } .each {
215+ it. id* . value = ' akarnokd'
216+ it. name* . value = ' David Karnok'
217+ it
. email
* . value
= ' [email protected] ' 218+ }
219+
220+ asNode()
. properties
. nebula_Module_Owner
* . value
= ' [email protected] ' 221+ asNode()
. properties
. nebula_Module_Email
* . value
= ' [email protected] ' 222+ }
223+ }
You can’t perform that action at this time.
0 commit comments