Skip to content

Commit

Permalink
Adding Sonar Maven plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaytotomato committed Jul 26, 2024
1 parent 59280d4 commit 68df953
Showing 1 changed file with 6 additions and 35 deletions.
41 changes: 6 additions & 35 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
<sonar.organization>tomaytotomato</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar-maven-plugin.version>4.0.0.4121</sonar-maven-plugin.version>
</properties>

<distributionManagement>
Expand Down Expand Up @@ -79,43 +80,13 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
</dependency>

<dependency>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar-maven-plugin.version}</version>
</dependency>
</dependencies>

<profiles>
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<configuration>
<formats>
<format>XML</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
Expand Down

0 comments on commit 68df953

Please sign in to comment.