You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2018/01/07 20:45:41 UTC
commons-release-plugin git commit: COMMONSSITE-99: jacoco integration
Repository: commons-release-plugin
Updated Branches:
refs/heads/master 74fb915c8 -> 06e4a0783
COMMONSSITE-99: jacoco integration
Project: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/commit/06e4a078
Tree: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/tree/06e4a078
Diff: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/diff/06e4a078
Branch: refs/heads/master
Commit: 06e4a0783a41f23d1a7e4779c1acae1366b8b675
Parents: 74fb915
Author: Rob Tompkins <ch...@gmail.com>
Authored: Sun Jan 7 15:45:19 2018 -0500
Committer: Rob Tompkins <ch...@gmail.com>
Committed: Sun Jan 7 15:45:19 2018 -0500
----------------------------------------------------------------------
pom.xml | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 87 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/06e4a078/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 31ed813..1422c8d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,7 +39,7 @@
<url>http://issues.apache.org/jira/browse/COMMONSSITE</url>
</issueManagement>
- <inceptionYear>2008</inceptionYear>
+ <inceptionYear>2018</inceptionYear>
<scm>
<connection>scm:git:http://git-wip-us.apache.org/repos/asf/commons-release-plugin.git</connection>
@@ -69,7 +69,6 @@
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.dependency.version>3.5.2</maven.dependency.version>
- <commons.jacoco.version>0.7.9</commons.jacoco.version>
<commons.manifestfile/>
<commons.componentid>commons-release-plugin</commons.componentid>
<commons.jira.id>COMMONSSITE</commons.jira.id>
@@ -83,6 +82,14 @@
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
<checkstyle.plugin.version>2.17</checkstyle.plugin.version>
<checkstyle.version>6.19</checkstyle.version>
+ <commons.jacoco.version>0.7.9</commons.jacoco.version>
+ <commons.jacoco.classRatio>0.1</commons.jacoco.classRatio>
+ <commons.jacoco.instructionRatio>0.1</commons.jacoco.instructionRatio>
+ <commons.jacoco.methodRatio>0.1</commons.jacoco.methodRatio>
+ <commons.jacoco.branchRatio>0.1</commons.jacoco.branchRatio>
+ <commons.jacoco.lineRatio>0.1</commons.jacoco.lineRatio>
+ <commons.jacoco.complexityRatio>0.1</commons.jacoco.complexityRatio>
+ <commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure>
</properties>
<dependencies>
@@ -244,6 +251,79 @@
</ignorePathsToDelete>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${commons.jacoco.version}</version>
+ <!-- Note that since JaCoCo relies on an agent to perform tests,
+ it changes the surefire arguments line. If a component also
+ needs to change the argument line of maven-surefire-plugin,
+ then it must add ${argLine} property (which is set by JaCoCo)
+ in the argLine configuration element of maven-surefire-plugin
+ to preserve JaCoCo settings. -->
+ <executions>
+ <execution>
+ <id>prepare-agent</id>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <phase>site</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>check</id>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <rule>
+ <element>BUNDLE</element>
+ <limits>
+ <limit>
+ <counter>CLASS</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>${commons.jacoco.classRatio}</minimum>
+ </limit>
+ <limit>
+ <counter>INSTRUCTION</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>${commons.jacoco.instructionRatio}</minimum>
+ </limit>
+ <limit>
+ <counter>METHOD</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>${commons.jacoco.methodRatio}</minimum>
+ </limit>
+ <limit>
+ <counter>BRANCH</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>${commons.jacoco.branchRatio}</minimum>
+ </limit>
+ <limit>
+ <counter>LINE</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>${commons.jacoco.lineRatio}</minimum>
+ </limit>
+ <limit>
+ <counter>COMPLEXITY</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>${commons.jacoco.complexityRatio}</minimum>
+ </limit>
+ </limits>
+ </rule>
+ </rules>
+ <haltOnFailure>${commons.jacoco.haltOnFailure}</haltOnFailure>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<reporting>
@@ -366,6 +446,11 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${commons.jacoco.version}</version>
+ </plugin>
</plugins>
</reporting>
</project>