Yoemain gradle/springboot multi-module project generator
OTHER License
Gradle has great scafolding capabilities for quickly bringing up a multi-module setup. There are few gaps here:
app
is not a spring-boot based application.library
or api
project.library
, api
and app
projects/modules are not configurableThe SpringInitializr helps in generating springboot based application with all the dependencies you need. In a way addresses the first issues but then how would add this generated app to existing build chain.
This plugin bridges the gap by enabling you to leverage multi-module setup capability of gralde with springboot based applications. You can declare the names of your library/api and application projects and the generator will scafold the code generated by gradle. In case of an application it adds basic @SpringbootApplication
annotation to the main class.
This plugin also utilizes Gradle's buildSrc
conventions and appropriately scafolds library and application project's build.gradle
files.
First, install Yeoman and generator-gradle-springboot using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-gradle-springboot
Then generate your new project:
yo gradle-springboot
Apache-2.0 © Amit Misra