Skip to content

Instantly share code, notes, and snippets.

@darylteo
Last active August 29, 2015 14:10
Show Gist options
  • Save darylteo/7e5e69519986bec90e00 to your computer and use it in GitHub Desktop.
Save darylteo/7e5e69519986bec90e00 to your computer and use it in GitHub Desktop.
Configuration Extensions
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