Gradle Plugin Version 1.2
This version of the plugin introduces several new features and fixes. Most importantly, it is now qualified, so you will need to use:
apply plugin: "uk.co.cacoethes.lazybones-templates"
Features and fixes:
- You can specify files and directories that should be excluded when packaging templates
- You can specify file permissions for the files and directories in the template packages
- Template directories are no longer validated during configuration, but rather at execution time
- You can use numbers in template names, e.g. 'standard-neo4j'
There are two forms for the exclusions and file permissions (global and per template):
lazybones {
// Global
packageExclude "**/*.swp", "**/*.swo"
fileMode "755", "gradlew", "gradlew.bat"
// Per template
template("ratpack") {
packageExclude ".gradle", ".settings"
fileMode "755", "gradlew"
}
}
As for templates with numbers in them, consider a template directory with the name "standard-neo4j". The corresponding tasks would be named:
packageTemplateStandardNeo4j
installTemplateStandardNeo4j
publishTemplateStandardNeo4j
If you instead what numbers separated by hyphens, e.g. "javaee-7", then you need to use the hyphenated form in the task names:
packageTemplate-javaee-7
The installTemplate* and publishTemplate* tasks may not work in this case, but it's easy enough to generate them in your build file.