Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
f70ac708
Commit
f70ac708
authored
Mar 25, 2017
by
Greg Messner
Browse files
Added support for JaCoCo code coverage reports.
parent
e4e2cb28
Changes
1
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
f70ac708
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd"
>
<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/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.gitlab4j
</groupId>
...
...
@@ -38,12 +39,12 @@
</developers>
<properties>
<jdk.version>
1.7
</jdk.version>
<jersey.version>
2.25.1
</jersey.version>
<jackson.version>
2.8.6
</jackson.version>
<junit.version>
4.12
</junit.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<jdk.version>
1.7
</jdk.version>
<jersey.version>
2.25.1
</jersey.version>
<jackson.version>
2.8.6
</jackson.version>
<junit.version>
4.12
</junit.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
</properties>
<scm>
...
...
@@ -125,6 +126,60 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.jacoco
</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<version>
0.7.9
</version>
<executions>
<execution>
<id>
default-prepare-agent
</id>
<goals>
<goal>
prepare-agent
</goal>
</goals>
</execution>
<execution>
<id>
default-report
</id>
<phase>
prepare-package
</phase>
<goals>
<goal>
report
</goal>
</goals>
</execution>
<execution>
<id>
default-check
</id>
<goals>
<goal>
check
</goal>
</goals>
<configuration>
<rules>
<!-- implementation is needed only for Maven 2 -->
<rule
implementation=
"org.jacoco.maven.RuleConfiguration"
>
<element>
BUNDLE
</element>
<limits>
<!-- implementation is needed only for Maven 2 -->
<limit
implementation=
"org.jacoco.report.check.Limit"
>
<counter>
COMPLEXITY
</counter>
<value>
COVEREDRATIO
</value>
<minimum>
0.60
</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.12.2
</version>
<configuration>
<systemPropertyVariables>
<jacoco-agent.destfile>
target/jacoco.exec
</jacoco-agent.destfile>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment