Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
maven-publish plugin. Hook, change in published pom.xml 'runtime' dependency to compile dependency.
publishing.publications.all {
pom.withXml {
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep -> == it.artifactId.text()
}.each { it.scope*.value = 'compile'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment