Skip to content

Instantly share code, notes, and snippets.

@lifuzu
Created December 15, 2013 04:08
Show Gist options
  • Save lifuzu/7968751 to your computer and use it in GitHub Desktop.
Save lifuzu/7968751 to your computer and use it in GitHub Desktop.
A copy task mapping source directory structure onto a new destination structure
//A copy task mapping source directory structure onto a new destination structure
task complexCopy(type: Copy) {
from('src/main/templates') {
include '**/*.gtpl'
into 'templates'
}
from('i18n')
from('config') {
exclude 'Development*.groovy'
into 'config'
}
into 'build/resources'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment