Skip to content

Instantly share code, notes, and snippets.

@bajtos
Created October 14, 2013 17:52
Show Gist options
  • Save bajtos/6979398 to your computer and use it in GitHub Desktop.
Save bajtos/6979398 to your computer and use it in GitHub Desktop.
Poor man's propagation of Android JAR Library dependencies to pom.xml
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