{"id":21877640,"url":"https://github.com/rbiedrawa/sonarqube-gradle-project-reference-template","last_synced_at":"2026-04-19T03:32:46.184Z","repository":{"id":162193107,"uuid":"466174393","full_name":"rbiedrawa/sonarqube-gradle-project-reference-template","owner":"rbiedrawa","description":"Continuous inspection of code quality with SonarQube - Java / Gradle / Docker project reference template.","archived":false,"fork":false,"pushed_at":"2022-03-05T04:33:30.000Z","size":221,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T23:43:26.552Z","etag":null,"topics":["code-coverage","code-quality","code-quality-analyzer","gradle","integration-testing","jacoco","jacoco-plugin","junit5","slice-testing","sonar","sonarqube","sonarqube-plugin","spring-boot","unit-test","unit-testing","wiremock","wiremock-server"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rbiedrawa.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-04T15:28:06.000Z","updated_at":"2023-02-13T16:08:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"dfc4ce29-23de-42eb-a871-af893d073c6f","html_url":"https://github.com/rbiedrawa/sonarqube-gradle-project-reference-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/rbiedrawa/sonarqube-gradle-project-reference-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbiedrawa%2Fsonarqube-gradle-project-reference-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbiedrawa%2Fsonarqube-gradle-project-reference-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbiedrawa%2Fsonarqube-gradle-project-reference-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbiedrawa%2Fsonarqube-gradle-project-reference-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbiedrawa","download_url":"https://codeload.github.com/rbiedrawa/sonarqube-gradle-project-reference-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbiedrawa%2Fsonarqube-gradle-project-reference-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31993792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-coverage","code-quality","code-quality-analyzer","gradle","integration-testing","jacoco","jacoco-plugin","junit5","slice-testing","sonar","sonarqube","sonarqube-plugin","spring-boot","unit-test","unit-testing","wiremock","wiremock-server"],"created_at":"2024-11-28T08:09:51.478Z","updated_at":"2026-04-19T03:32:46.151Z","avatar_url":"https://github.com/rbiedrawa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Continuous inspection of code quality with SonarQube - Java / Gradle / Docker project reference template\n\nThis repository demonstrates how to perform and configure continuous inspection of code quality with SonarQube for Java / Gradle projects.\n\n## Features\n\n* Local SonarQube server via docker compose\n* Gradle SonarQube plugin configuration with custom coverage/issues exclusions \n* Jacoco coverage reports \n* Separated unit and integration tests.\n* Spring Boot integration tests with WireMock\n* Unit testing REST services clients via @RestClientTest\n\n## Getting Started\n\n### Prerequisites:\n\n* Java 11\n* Docker\n\n### Usage:\n\n1. Start local SonarQube server\n    ```shell\n    docker-compose -f ./docker/sonar.yml up -d\n    ```\n2. Check if container is up and running by opening SonarQube dashboard, which should be available on [http://localhost:9000/](http://localhost:9000/)\n3. Run a SonarQube analysis\n    ```shell\n    ./gradlew clean sonarqube\n    ```\n4. Once the analysis completes, it should be available on the Sonar dashboard. \n   ![sonarqube-dashboard.png](./docs/img/sonarqube-dashboard.png)\n5. Check the code smells. \n   ![code-smells.png](./docs/img/code-smells.png)\n6. Have a fun and play with the demo setup by fixing the code smells, adding more tests for better coverages or edit [sonar-project.properties](./sonar-project.properties) to tweak the analysis\n\n## Additional Useful Tools\n\n* [Sonarlint - Intellij IDEA plugin](https://www.sonarlint.org/intellij)\n\n## References\n\nFor further reference, please consider the following sections:\n\n* [SonarQube - Code Quality and Code Security](https://www.sonarqube.org/)\n* [Wiremock](https://wiremock.org/)\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbiedrawa%2Fsonarqube-gradle-project-reference-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbiedrawa%2Fsonarqube-gradle-project-reference-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbiedrawa%2Fsonarqube-gradle-project-reference-template/lists"}