Skip to content

Instantly share code, notes, and snippets.

@Lunatrius
Created September 19, 2014 13:31
Show Gist options
  • Save Lunatrius/02a7d8f4ae94410a6d8f to your computer and use it in GitHub Desktop.
Save Lunatrius/02a7d8f4ae94410a6d8f to your computer and use it in GitHub Desktop.
def tmpRes = 'build/dependencyATs'
sourceSets.main.resources.srcDirs += [tmpRes]
configurations.compile.copy().each { file ->
logger.lifecycle "Processing ${file.path}..."
copy {
from(zipTree(file.path)) {
include '*_at.cfg'
}
into(tmpRes)
}
}
processResources {
doFirst {
delete tmpRes
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment