]> source.dussan.org Git - pf4j.git/commitdiff
Add support for coverage in sonar (#565)
authorDecebal Suiu <decebal.suiu@gmail.com>
Mon, 5 Feb 2024 23:15:41 +0000 (01:15 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Feb 2024 23:15:41 +0000 (01:15 +0200)
pf4j/pom.xml

index a0d1155d6b0605b9a90754a5227ab3011b2022b2..c00e0e6cd1848ff0d40060825413dddcaabf915f 100644 (file)
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+                <version>0.8.11</version>
+                <executions>
+                    <execution>
+                        <id>prepare-agent</id>
+                        <goals>
+                            <goal>prepare-agent</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>report</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>report</goal>
+                        </goals>
+                        <configuration>
+                            <formats>
+                                <format>XML</format>
+                            </formats>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>