Minimal steps to get a Spring Boot project running with Gradle.

Create the project

Generate a zip at start.spring.io including the following dependencies:

  • Spring Web
  • Rest Repositories

Unzip the file and open the project in IntelliJ:

unzip helloworld.zip

Running the application

./gradlew bootRun

The server listens on http://localhost:8080 once it boots.

Building the application

./gradlew build

Deploying the application

./gradlew build
cp build/libs/<JAR_NAME>.jar <DEPLOYMENT_DIRECTORY>