-
-
Save Ardemius/b007c16eb48786e641561dece4dd030c to your computer and use it in GitHub Desktop.
Loading Gradle dependencies from External Properties file
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
cglib:cglib-nodep:2.1_3 | |
net.sourceforge.cssparser:cssparser:0.9.5 | |
org.freemarker:freemarker:2.3.16 | |
com.google.guava:guava:10.0.1 | |
org.hamcrest:hamcrest-core:1.1 |
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
def exportedConfig = [ | |
'compile', | |
'spring', | |
'apache' | |
] | |
exportedConfig.each {name -> | |
file("gradle/${name}.lib.properties").eachLine {line-> | |
if (!line.trim().empty) { | |
project.dependencies.add(name, line) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment