Created
October 14, 2013 17:52
-
-
Save bajtos/6979398 to your computer and use it in GitHub Desktop.
Poor man's propagation of Android JAR Library dependencies to pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pom.withXml { | |
def root = asNode() | |
def deps = new Node(root, 'dependencies') | |
configurations.compile.allDependencies.each { dep -> | |
def node = new Node(deps, 'dependency') | |
new Node(node, 'groupId', dep.group) | |
new Node(node, 'artifactId', dep.name) | |
new Node(node, 'version', dep.version); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment