Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pebsconsulting/c93f1812c87dc4025acab1e2f445b567 to your computer and use it in GitHub Desktop.
Save pebsconsulting/c93f1812c87dc4025acab1e2f445b567 to your computer and use it in GitHub Desktop.

Revisions

  1. @bugs84 bugs84 created this gist Feb 26, 2016.
    9 changes: 9 additions & 0 deletions ChangeFromRuntimeToCompile.gradle
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    publishing.publications.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'}
    }
    }