Skip to content

Commit

Permalink
Add jacoco quarkus
Browse files Browse the repository at this point in the history
quarkus ext add io.quarkus:quarkus-jacoco
  • Loading branch information
fugerit79 committed Oct 17, 2024
1 parent 156d983 commit 41882e6
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
<artifactId>fj-doc-quarkus-tutorial</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<compiler-plugin.version>3.13.0</compiler-plugin.version>
<fj-doc-ext-kotlin-version>0.4.2</fj-doc-ext-kotlin-version>
<fj-doc-version>8.9.3</fj-doc-version>
<kotlin.version>2.0.21</kotlin.version>
<maven.compiler.release>21</maven.compiler.release>
<surefire-plugin.version>3.3.1</surefire-plugin.version>
<quarkus.platform.version>3.15.1</quarkus.platform.version>
<skipITs>true</skipITs>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<compiler-plugin.version>3.13.0</compiler-plugin.version>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<fj-doc-version>8.9.3</fj-doc-version>
<fj-doc-ext-kotlin-version>0.4.2</fj-doc-ext-kotlin-version>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<kotlin.version>2.0.21</kotlin.version>
<quarkus.platform.version>3.15.1</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.3.1</surefire-plugin.version>
<versions.jacoco>0.8.12</versions.jacoco>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -58,6 +59,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jacoco</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
Expand Down Expand Up @@ -254,23 +259,19 @@
<quarkus.native.enabled>true</quarkus.native.enabled>
</properties>
</profile>
<!-- profiles for fugerit-org workflows -->
<profile>
<id>sonarfugerit</id>
<properties>
<!-- sonar cloud configuration -->
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>fugerit-org</sonar.organization>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
<!-- sonar.projectKey must be added by the project -->
</properties>
</profile>
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>false</skipTests>
Expand All @@ -279,23 +280,25 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${versions.jacoco}</version>
<executions>
<execution>
<id>prepare-agent</id>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<exclClassLoaders>*QuarkusClassLoader</exclClassLoaders>
<destFile>${project.build.directory}/jacoco-quarkus.exec</destFile>
<append>true</append>
</configuration>
</execution>
<execution>
<id>report</id>
<id>generate-code-coverage-report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<formats>
<format>XML</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

0 comments on commit 41882e6

Please sign in to comment.