Skip to content

Commit 724eab8

Browse files
authored
Fix Sonar coverage (#1169)
1 parent edef45b commit 724eab8

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ jobs:
130130
java-version: 17
131131

132132
- name: sonar
133-
run: mvn sonar:sonar -Dsonar.projectKey=smallrye_smallrye-config -Dsonar.token=${{secrets.SONAR_TOKEN}}
133+
run: mvn sonar:sonar -Psonar -Dsonar.projectKey=io.smallrye.config:smallrye-config -Dsonar.token=${{secrets.SONAR_TOKEN}}

README.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
:microprofile-config: https://github.com/eclipse/microprofile-config/
22
:ci: https://github.com/smallrye/smallrye-config/actions?query=workflow%3A%22SmallRye+Build%22
3-
:sonar: https://sonarcloud.io/dashboard?id=smallrye_smallrye-config
3+
:sonar: https://sonarcloud.io/dashboard?id=io.smallrye.config%3Asmallrye-config
44

55
image:https://github.com/smallrye/smallrye-config/workflows/SmallRye%20Build/badge.svg?branch=main[link={ci}]
6-
image:https://sonarcloud.io/api/project_badges/measure?project=smallrye_smallrye-config&metric=alert_status["Quality Gate Status", link={sonar}]
6+
image:https://sonarcloud.io/api/project_badges/measure?project=io.smallrye.config%3Asmallrye-config&metric=alert_status["Quality Gate Status", link={sonar}]
77
image:https://img.shields.io/github/license/smallrye/smallrye-config.svg["License", link="http://www.apache.org/licenses/LICENSE-2.0"]
88
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"]
99

pom.xml

+8-11
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,19 @@
149149
<id>coverage</id>
150150
<properties>
151151
<argLine>@{jacocoArgLine}</argLine>
152+
</properties>
153+
<modules>
154+
<module>coverage</module>
155+
</modules>
156+
</profile>
157+
<profile>
158+
<id>sonar</id>
159+
<properties>
152160
<!--suppress UnresolvedMavenProperty -->
153161
<sonar.coverage.jacoco.xmlReportPaths>
154162
${maven.multiModuleProjectDirectory}/coverage/target/site/jacoco-aggregate/jacoco.xml
155163
</sonar.coverage.jacoco.xmlReportPaths>
156164
</properties>
157-
<build>
158-
<plugins>
159-
<plugin>
160-
<groupId>org.jacoco</groupId>
161-
<artifactId>jacoco-maven-plugin</artifactId>
162-
</plugin>
163-
</plugins>
164-
</build>
165-
<modules>
166-
<module>coverage</module>
167-
</modules>
168165
</profile>
169166
</profiles>
170167
</project>

0 commit comments

Comments
 (0)