#204 - Added build profile for SonarQube.
Register JaCoCo plugin for test coverage.
This commit is contained in:
@@ -85,6 +85,7 @@
|
||||
<project.root>${basedir}</project.root>
|
||||
<source.level>1.6</source.level>
|
||||
<dist.id>${project.artifactId}</dist.id>
|
||||
<jacoco.destfile>${project.build.directory}/jacoco.exec</jacoco.destfile>
|
||||
|
||||
<apt>1.1.3</apt>
|
||||
<aspectj>1.8.6</aspectj>
|
||||
@@ -93,6 +94,7 @@
|
||||
<guava>18.0</guava>
|
||||
<hamcrest>1.3</hamcrest>
|
||||
<jackson>2.6.1</jackson>
|
||||
<jacoco>0.7.5.201505241946</jacoco>
|
||||
<jodatime>2.8.2</jodatime>
|
||||
<junit>4.12</junit>
|
||||
<logback>1.1.3</logback>
|
||||
@@ -139,6 +141,34 @@
|
||||
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
|
||||
<!-- Profile for SonarCube -->
|
||||
|
||||
<id>sonarcube</id>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>${jacoco}</version>
|
||||
<configuration>
|
||||
<destFile>${jacoco.destfile}</destFile>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>jacoco-initialize</id>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user