generator-gradle-springboot

0.1.3 • Public • Published

generator-gradle-springboot Node.js CI Node.js Package

Why another gradle and springboot based generator?

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.
  • Adding more than two library or api project.
  • The names of the library, api and app projects/modules are not configurable

The 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.

Gradle-Springboot generator

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.

Installation

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

Demo

asciicast

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

Apache-2.0 © Amit Misra

Package Sidebar

Install

npm i generator-gradle-springboot

Weekly Downloads

1

Version

0.1.3

License

Apache-2.0

Unpacked Size

90.8 kB

Total Files

25

Last publish

Collaborators

  • amitmisra16