Gradle counterpart to Maven archetype?

Viewed 28843

What is the Gradle counterpart to Maven archetypes? How can I give other Gradle users a template for the file and directory layout for a new project?

9 Answers

You can create generators for Yeoman, or use existing non-official ones such as JHipster. As an example there is the java-gradle generator:

  1. npm install -g yo
  2. Install module globally: npm install -g generator-java-gradle
  3. Generate project with: yo java-gradle
Related