Member-only story
Spring Boot 3 — Code quality with SonarQube
5 min readOct 31, 2023
Code quality strengthens review processes and keeps project code simple, readable, and easier to maintain. In this story, we’ll learn how to configure a SonarQube server with Docker and integrate it with a Spring Boot application.
· Prerequisites
· Overview
∘ What is SonarQube?
∘ Developing with Sonar
· Setup SonarQube Server
∘ Installing with Docker-compose
∘ Log in to SonarQube
∘ Project setup
∘ Token creation
· Using SonarQube in the Spring Boot Project
∘ Project Analyzing
∘ Java test coverage
∘ Using a Jenkins pipeline
· Conclusion
· References
Prerequisites
This is the list of all the prerequisites:
- Spring Boot 3+
- Maven 3.6.+
- Java 17 or later
- Docker installed
- Docker compose installed