Gradle Modules Generator

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Feb 19, 2019
334
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.
config.yml is a Velocity template as well. Besides name 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.

Recent change notes

  • 1.0.2: Performance improvements
  • 1.0.1: Fix Windows crash