Created
April 24, 2012 06:45
-
-
Save skhatri/2477178 to your computer and use it in GitHub Desktop.
Gradle to ivy install ANT xml stanza
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
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