Skip to content

Commit

Permalink
Fix Sonar coverage (#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed May 16, 2024
1 parent edef45b commit 724eab8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ jobs:
java-version: 17

- name: sonar
run: mvn sonar:sonar -Dsonar.projectKey=smallrye_smallrye-config -Dsonar.token=${{secrets.SONAR_TOKEN}}
run: mvn sonar:sonar -Psonar -Dsonar.projectKey=io.smallrye.config:smallrye-config -Dsonar.token=${{secrets.SONAR_TOKEN}}
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
:microprofile-config: https://github.com/eclipse/microprofile-config/
:ci: https://github.com/smallrye/smallrye-config/actions?query=workflow%3A%22SmallRye+Build%22
:sonar: https://sonarcloud.io/dashboard?id=smallrye_smallrye-config
:sonar: https://sonarcloud.io/dashboard?id=io.smallrye.config%3Asmallrye-config

image:https://github.com/smallrye/smallrye-config/workflows/SmallRye%20Build/badge.svg?branch=main[link={ci}]
image:https://sonarcloud.io/api/project_badges/measure?project=smallrye_smallrye-config&metric=alert_status["Quality Gate Status", link={sonar}]
image:https://sonarcloud.io/api/project_badges/measure?project=io.smallrye.config%3Asmallrye-config&metric=alert_status["Quality Gate Status", link={sonar}]
image:https://img.shields.io/github/license/smallrye/smallrye-config.svg["License", link="http://www.apache.org/licenses/LICENSE-2.0"]
image:https://img.shields.io/maven-central/v/io.smallrye.config/smallrye-config?color=green["Maven", link="https://search.maven.org/search?q=g:io.smallrye.config%20AND%20a:smallrye-config"]

Expand Down
19 changes: 8 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,19 @@
<id>coverage</id>
<properties>
<argLine>@{jacocoArgLine}</argLine>
</properties>
<modules>
<module>coverage</module>
</modules>
</profile>
<profile>
<id>sonar</id>
<properties>
<!--suppress UnresolvedMavenProperty -->
<sonar.coverage.jacoco.xmlReportPaths>
${maven.multiModuleProjectDirectory}/coverage/target/site/jacoco-aggregate/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<modules>
<module>coverage</module>
</modules>
</profile>
</profiles>
</project>

0 comments on commit 724eab8

Please sign in to comment.