Reduce boilerplate routine in multi-module gradle projects.
To make it works, follow these steps:
- Create a directory called gradle_templates in the root of your project.
- Create subdirectories in that folder. Their names don't matter.
- Inside of each folder create a config.yml file and define a name of your module.
- Also, create additional folders - static and template and put your files in them.
All content from a static
directory will be copied inside of your created module.
In a template
folder you can put Apache Velocity templates which will be resolved before copying.
For now, you can use only module.baseName
variable in your templates. It will be a value that you enter in the dialog when Ctrl + Alt + G was pressed.
is a Velocity template as well.
property in a config you can use a directories
property to define a list of directories to be created. You should use it when your directory name depends on a module.baseName
and use empty directories inside of a static
folder in other cases.