Skip to content

Commit

Permalink
Hopefully fixed the problem with the dependencies in the maven pom
Browse files Browse the repository at this point in the history
  • Loading branch information
HanSolo committed Dec 13, 2016
1 parent c8299c2 commit 654ea94
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion build.gradle
Expand Up @@ -91,7 +91,7 @@ def pomConfig = {
url 'https://github.com/HanSolo/regulators/wiki' url 'https://github.com/HanSolo/regulators/wiki'
inceptionYear '2016' inceptionYear '2016'
licenses { licenses {
license([:]) { license {
name 'The Apache Software License, Version 2.0' name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo' distribution 'repo'
Expand All @@ -118,6 +118,18 @@ publishing {
artifact javadocJar artifact javadocJar


pom.withXml { pom.withXml {
// all dependencies should use the default scope (compile) but
// Gradle insists in using runtime as default
asNode().dependencies.dependency.each { dep ->
if (dep.scope.text() == 'runtime') {
dep.remove(dep.scope)
}
}
asNode().appendNode('repositories')
.appendNode('repository')
.appendNode('id', 'bintray').parent()
.appendNode('name', 'bintray').parent()
.appendNode('url', 'htp://jcenter.bintray.com').parent()
asNode().children().last() + pomConfig asNode().children().last() + pomConfig
asNode().appendNode('description', description) asNode().appendNode('description', description)
} }
Expand Down

0 comments on commit 654ea94

Please sign in to comment.