Basics

Building Spring Boot Application

  1. Build Without Tests using Gradle.

The following command cleans and then builds the application without tests. The -x is to exclude the task list, here test task is excluded

./gradlew clean build -x test

Running Sprint Boot Application

The following command will run the application built in the above step with the dev profile

java -jar build/libs/app-service-0.0.1.jar --spring.profiles.active=dev