Skip to content

Instantly share code, notes, and snippets.

@skhatri
Created April 24, 2012 06:45
Show Gist options
  • Save skhatri/2477178 to your computer and use it in GitHub Desktop.
Save skhatri/2477178 to your computer and use it in GitHub Desktop.
Gradle to ivy install ANT xml stanza
f=file('ivy-install.xml')
[
'compile',
'spring'
].each {name ->
file("gradle/${name}.properties").eachLine {line->
library=line.split(':')
def depStr = """
<ivy:install settingsRef="company.settings" organisation="${library[0]}"
module="${library[1]}" revision="${library[2]}"
overwrite="true" from="local_maven" to="company_ivy_resolver"
transitive="false" />
"""
f << depStr
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment