Skip to content

Instantly share code, notes, and snippets.

@bajtos
Created October 14, 2013 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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