Skip to content

Commit

Permalink
Fixed Sonar Coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Dec 15, 2020
1 parent e575006 commit 52a0c42
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 56 deletions.
7 changes: 0 additions & 7 deletions cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{jacocoArgLine} -Xmx512m</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down
4 changes: 0 additions & 4 deletions converters/json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

<name>SmallRye: MicroProfile Config Converter - Json</name>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../../coverage/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<dependencies>
<dependency>
<groupId>org.eclipse.microprofile.config</groupId>
Expand Down
39 changes: 16 additions & 23 deletions coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<groupId>io.smallrye.config</groupId>
<artifactId>smallrye-config-common</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye.config</groupId>
<artifactId>smallrye-config-core</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye.config</groupId>
<artifactId>smallrye-config</artifactId>
Expand Down Expand Up @@ -63,6 +67,18 @@
<artifactId>smallrye-config-source-injection</artifactId>
<version>${project.version}</version>
</dependency>

<!-- TCKs -->
<dependency>
<groupId>io.smallrye.config</groupId>
<artifactId>smallrye-config-test-extra</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.smallrye.config</groupId>
<artifactId>smallrye-config-tck</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
Expand All @@ -71,29 +87,6 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>merge</id>
<goals>
<goal>merge</goal>
</goals>
<configuration>
<fileSets>
<fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
<directory>.</directory>
<includes>
<include>**/*.exec</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</execution>
<execution>
<id>prepare-agent</id>
<phase>none</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>aggregate-report</id>
<phase>verify</phase>
Expand Down
7 changes: 0 additions & 7 deletions implementation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,6 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{jacocoArgLine} -Xmx512m</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@
<id>coverage</id>
<properties>
<argLine>@{jacocoArgLine}</argLine>
<!--suppress UnresolvedMavenProperty -->
<sonar.coverage.jacoco.xmlReportPaths>
${maven.multiModuleProjectDirectory}/coverage/target/site/jacoco-aggregate/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
</properties>
<modules>
<module>coverage</module>
Expand Down
4 changes: 0 additions & 4 deletions sources/file-system/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
<artifactId>smallrye-config-source-file-system</artifactId>
<name>SmallRye: FileSystem ConfigSource</name>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../../coverage/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<dependencies>
<dependency>
<groupId>io.smallrye.config</groupId>
Expand Down
1 change: 0 additions & 1 deletion sources/hocon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<name>SmallRye: HOCON ConfigSource</name>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../../coverage/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<lightbend-config.version>1.4.1</lightbend-config.version>
</properties>

Expand Down
1 change: 0 additions & 1 deletion sources/yaml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<name>SmallRye: MicroProfile Config Source - Yaml</name>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../../coverage/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<snakeyaml.version>1.27</snakeyaml.version>
</properties>

Expand Down
1 change: 0 additions & 1 deletion sources/zookeeper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<name>SmallRye: ZooKeeper ConfigSource</name>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../../coverage/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<version.curator>5.1.0</version.curator>
</properties>

Expand Down
8 changes: 8 additions & 0 deletions testsuite/extra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!--suppress UnresolvedMavenProperty -->
<argLine>${jacocoArgLine}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down
8 changes: 8 additions & 0 deletions testsuite/tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!--suppress UnresolvedMavenProperty -->
<argLine>${jacocoArgLine}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions utils/cdi-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

<name>SmallRye: MicroProfile Config Source Injection</name>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../../coverage/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<dependencies>
<dependency>
<groupId>jakarta.enterprise</groupId>
Expand Down
4 changes: 0 additions & 4 deletions utils/events/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

<name>SmallRye: MicroProfile Config Events</name>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../../coverage/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<dependencies>
<dependency>
<groupId>jakarta.enterprise</groupId>
Expand Down

0 comments on commit 52a0c42

Please sign in to comment.