Last active
August 29, 2015 14:10
-
-
Save darylteo/7e5e69519986bec90e00 to your computer and use it in GitHub Desktop.
Configuration Extensions
This file contains hidden or 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
configurations { | |
war_common | |
war_secure | |
mwar | |
pwar | |
swar | |
uwar | |
mwar.extendsFrom war_common | |
pwar.extendsFrom war_common | |
pwar.extendsFrom war_secure | |
swar.extendsFrom war_common | |
uwar.extendsFrom war_common | |
} | |
def configs = [ | |
'mwar','pwar','swar','uwar' | |
] | |
for(def config_name : configs) { | |
task('war' + config_name, type: War) { | |
} | |
} | |
// now you have 4 tasks, | |
// warmwar | |
// warpwar | |
// warswar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment