Who would this benefit?

  • New Java developers who aren't familiar with project setup.
  • Experienced developers who know which sets of dependencies they need.

What does it do?

  • Generates boilerplate directory structure.
  • Writes dependency file containing your favourite Spring Boot libraries.
  • Removes a handful of key strokes from your day.

How to use it?

Using cURL

curl https://start.spring.io/starter.zip \
-d type=gradle-project \
-d language=java \
-d style=web,mustache,jpa,h2 \
-d packageName=generate-this-package-name \
-d name=generate-this-artifact-name \
-o as-this-zip-file.zip

References

The generated directory structure

.
├── build.gradle
├── gradle
│   └── wrapper
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── settings.gradle
└── src
    ├── main
    │   ├── java
    │   │   └── am
    │   │       └── iamwilli
    │   │           └── initializrexample
    │   │               └── InitializrExampleApplication.java
    │   └── resources
    │       ├── application.properties
    │       ├── static
    │       └── templates
    └── test
        └── java
            └── am
                └── iamwilli
                    └── initializrexample
                        └── InitializrExampleApplicationTests.java

16 directories, 9 files

More Gradle

Find out what more Gradle can do with the cheatsheet reference.