Skip to content

Commit d8fed86

Browse files
mferretticlaude
andcommitted
chore(ci): replace SonarCloud with Codacy for code quality badge
SonarCloud OAuth was not working. Codacy connects via GitHub App with no token/plugin setup required. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0dce287 commit d8fed86

File tree

4 files changed

+1
-23
lines changed

4 files changed

+1
-23
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ jobs:
3232
- name: Run tests with coverage
3333
run: ./gradlew test jacocoTestReport
3434

35-
- name: Analyze with SonarCloud
36-
env:
37-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
run: ./gradlew sonar
40-
4135
- name: Upload coverage to Codecov
4236
uses: codecov/codecov-action@v5
4337
with:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://github.com/mferretti/SeedStream/actions/workflows/build.yml/badge.svg)](https://github.com/mferretti/SeedStream/actions/workflows/build.yml)
44
[![Security Scan](https://github.com/mferretti/SeedStream/actions/workflows/security.yml/badge.svg)](https://github.com/mferretti/SeedStream/actions/workflows/security.yml)
5-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=mferretti_SeedStream&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=mferretti_SeedStream)
5+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/5ddc8a45a98c4ea4b5a8968152634f2f)](https://app.codacy.com/gh/mferretti/SeedStream/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
66
[![Java Version](https://img.shields.io/badge/Java-21-blue.svg)](https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html)
77
[![Gradle](https://img.shields.io/badge/Gradle-9.4-brightgreen.svg)](https://gradle.org)
88
[![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg)](LICENSE)

build.gradle.kts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ plugins {
77
alias(libs.plugins.spotless) apply false
88
alias(libs.plugins.spotbugs) apply false
99
alias(libs.plugins.dependency.check) apply false
10-
alias(libs.plugins.sonarqube)
1110
}
1211

1312
allprojects {
@@ -20,19 +19,6 @@ allprojects {
2019
}
2120
}
2221

23-
sonar {
24-
properties {
25-
property("sonar.projectKey", "mferretti_SeedStream")
26-
property("sonar.organization", "mferretti")
27-
property("sonar.host.url", "https://sonarcloud.io")
28-
property("sonar.java.source", "21")
29-
// Aggregate JaCoCo XML reports from all submodules
30-
property("sonar.coverage.jacoco.xmlReportPaths", "**/build/reports/jacoco/test/jacocoTestReport.xml")
31-
// Exclude benchmarks module and generated sources from analysis
32-
property("sonar.exclusions", "benchmarks/**,**/generated/**")
33-
}
34-
}
35-
3622
// Custom task to run dependency-check on all subprojects
3723
// Note: dependencyCheckAggregate doesn't scan Gradle dependencies properly
3824
// We use dependencyCheckAnalyze on each module instead

gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ lombok-plugin = "9.2.0"
4646
spotless-plugin = "8.3.0"
4747
spotbugs-plugin = "6.4.8"
4848
dependency-check-plugin = "12.2.0"
49-
sonarqube-plugin = "4.4.1.3373"
5049

5150
[libraries]
5251
# Lombok
@@ -147,4 +146,3 @@ lombok = { id = "io.freefair.lombok", version.ref = "lombok-plugin" }
147146
spotless = { id = "com.diffplug.spotless", version.ref = "spotless-plugin" }
148147
spotbugs = { id = "com.github.spotbugs", version.ref = "spotbugs-plugin" }
149148
dependency-check = { id = "org.owasp.dependencycheck", version.ref = "dependency-check-plugin" }
150-
sonarqube = { id = "org.sonarqube", version.ref = "sonarqube-plugin" }

0 commit comments

Comments
 (0)