Skip to content

Instantly share code, notes, and snippets.

@bugs84
Created February 26, 2016 16:07
Show Gist options
  • Select an option

  • Save bugs84/b7887fb5d7f9f2d484b8 to your computer and use it in GitHub Desktop.

Select an option

Save bugs84/b7887fb5d7f9f2d484b8 to your computer and use it in GitHub Desktop.

Revisions

  1. 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'}
    }
    }