./gradlew clean build
./gradlew bootRun
In order for Intellij to allow hot reloading of the application, the following steps need to be executed:
- Go to Preferences -> Build, Execution & Deployment -> Compiler
- Check Make project automatically
- Click OK
- Do CMD + Shift + A
- Search for Registry
- Check compiler.automake.allow.when.app.running
- Click Close
Jacoco is being used to ensure minimum code coverage. Reports can be found at: ./build/reports
Install the SonarLint plugin on Intellij and connect to the SonarCloud instance.
OR
./gradlew sonarqube
And check results at: https://sonarcloud.io/dashboard?id=com.andmicroservice%3Askeleton-api
See https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html