Skip to content

Instantly share code, notes, and snippets.

@joshuadavis
Forked from ethankhall/ivyConverter.groovy
Created June 26, 2014 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuadavis/548ec327c5342fae1ef3 to your computer and use it in GitHub Desktop.
Save joshuadavis/548ec327c5342fae1ef3 to your computer and use it in GitHub Desktop.
println("dependencies {")
def ivyModule = new XmlParser().parse(new File('ivy.xml'))
ivyModule.dependencies.dependency.each {
def scope = it.@conf?.contains("test") ? "testCompile" : "compile"
println("\t$scope '${it.@org}:${it.@name}:${it.@rev}'")
}
println("}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment