Skip to content

Commit

Permalink
fix issue with maven publication => change runtime to compile in gene…
Browse files Browse the repository at this point in the history
…rated pom
  • Loading branch information
bbilger committed Dec 14, 2016
1 parent a70966d commit 7e01fef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,16 @@ subprojects {
artifact sourcesJar
artifact javadocJar
}
// change from runtime to compile time
all {
pom.withXml {
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 7e01fef

Please sign in to comment.