Skip to content

Commit 56299bb

Browse files
committed
Introduce aggregator module?
1 parent 905321a commit 56299bb

File tree

2 files changed

+67
-3
lines changed

2 files changed

+67
-3
lines changed

coverage-aggregator/pom.xml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!--
4+
~ Copyright (c) 2010-present Sonatype, Inc.
5+
~ All rights reserved. This program and the accompanying materials
6+
~ are made available under the terms of the Eclipse Public License v1.0
7+
~ which accompanies this distribution, and is available at
8+
~ http://www.eclipse.org/legal/epl-v10.html
9+
~
10+
~ Contributors:
11+
~ Stuart McCulloch (Sonatype, Inc.) - initial API and implementation
12+
-->
13+
14+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
15+
<modelVersion>4.0.0</modelVersion>
16+
17+
<parent>
18+
<groupId>org.eclipse.sisu</groupId>
19+
<artifactId>sisu-inject</artifactId>
20+
<version>0.9.0-SNAPSHOT</version>
21+
</parent>
22+
23+
<artifactId>coverage-aggregator</artifactId>
24+
<packaging>pom</packaging>
25+
<description>Module to aggregate code test coverage</description>
26+
27+
<dependencies>
28+
<dependency>
29+
<groupId>org.eclipse.sisu</groupId>
30+
<artifactId>org.eclipse.sisu.inject</artifactId>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.eclipse.sisu</groupId>
34+
<artifactId>org.eclipse.sisu.plexus</artifactId>
35+
</dependency>
36+
<dependency>
37+
<groupId>org.eclipse.sisu</groupId>
38+
<artifactId>sisu-maven-plugin</artifactId>
39+
</dependency>
40+
</dependencies>
41+
42+
<build>
43+
<plugins>
44+
<plugin>
45+
<groupId>org.jacoco</groupId>
46+
<artifactId>jacoco-maven-plugin</artifactId>
47+
<executions>
48+
<execution>
49+
<id>report-aggregate</id>
50+
<phase>verify</phase>
51+
<goals>
52+
<goal>report-aggregate</goal>
53+
</goals>
54+
</execution>
55+
</executions>
56+
</plugin>
57+
</plugins>
58+
</build>
59+
</project>
60+

pom.xml

+7-3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<module>org.eclipse.sisu.plexus</module>
5959
<module>org.eclipse.sisu.plexus.extender</module>
6060
<module>org.eclipse.sisu.mojos</module>
61+
<module>coverage-aggregator</module>
6162
</modules>
6263

6364
<developers>
@@ -124,9 +125,7 @@
124125
<maven.compiler.source>${maven.compiler.release}</maven.compiler.source>
125126
<maven.compiler.target>${maven.compiler.release}</maven.compiler.target>
126127
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
127-
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
128-
<sonar.language>java</sonar.language>
129-
<sonar.coverage.jacoco.xmlReportPaths>${basedir}/target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
128+
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/coverage-aggregator/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
130129

131130
<mavenRuntimeVersion>3.2.5</mavenRuntimeVersion>
132131
<mavenBuildVersion>3.6.3</mavenBuildVersion>
@@ -152,6 +151,11 @@
152151
<artifactId>org.eclipse.sisu.plexus</artifactId>
153152
<version>${project.version}</version>
154153
</dependency>
154+
<dependency>
155+
<groupId>org.eclipse.sisu</groupId>
156+
<artifactId>sisu-maven-plugin</artifactId>
157+
<version>${project.version}</version>
158+
</dependency>
155159

156160
<!--
157161
| Sisu is compatible with Guice 3.0+

0 commit comments

Comments
 (0)