You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2019/06/15 23:48:22 UTC

[incubator-datasketches-java] 01/01: Move from Cobertura to Jacoco

This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch CoverageFix
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-java.git

commit deb2c59ebe194aada003696fe3852df81c1f644e
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Sat Jun 15 16:48:07 2019 -0700

    Move from Cobertura to Jacoco
---
 .travis.yml |  2 +-
 README.md   |  2 +-
 pom.xml     | 25 ++++++++++++++-----------
 3 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 53840be..cedcd68 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -37,7 +37,7 @@ script:
  - mvn clean compile test -Dgpg.skip=true
 
 after_success: 
- - mvn clean cobertura:cobertura coveralls:report
+ - mvn clean test jacoco:report coveralls:report
 
 notifications:
   email: false
diff --git a/README.md b/README.md
index 61f0604..6348b2e 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
 [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.yahoo.datasketches/sketches-core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.yahoo.datasketches/sketches-core) 
 [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/incubator-datasketches-java.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-datasketches-java/context:java)
 [![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/incubator-datasketches-java.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-datasketches-java/alerts/)
-[![Coverage Status](https://coveralls.io/repos/github/apache/incubator-datasketches-java/badge.svg?branch=master)](https://coveralls.io/github/apache/incubator-datasketches-java?branch=master)
+[![Coverage Status](https://coveralls.io/repos/github/apache/incubator-datasketches-java/badge.svg?branch=master&service=github)](https://coveralls.io/github/apache/incubator-datasketches-java?branch=master)
 
 
 =================
diff --git a/pom.xml b/pom.xml
index ef286bb..d35a7ff 100644
--- a/pom.xml
+++ b/pom.xml
@@ -98,7 +98,7 @@
         <maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version>
         
         <!-- Codehaus.org Maven Plugins -->
-        <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
+        <jacoco-maven-plugin.version>0.8.4</jacoco-maven-plugin.version>
         <exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
         <license-maven-plugin.version>1.19</license-maven-plugin.version>
         <plexus-compiler-javac-errorprone.version>2.8.5</plexus-compiler-javac-errorprone.version>
@@ -221,8 +221,8 @@
 
             <!-- Generates code coverage report from website. -->
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>cobertura-maven-plugin</artifactId>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
             </plugin>
 
              <!-- Submit code coverage report to Coveralls.io. -->
@@ -361,14 +361,17 @@
                 </plugin>
 
                 <plugin>
-                    <groupId>org.codehaus.mojo</groupId>
-                    <artifactId>cobertura-maven-plugin</artifactId>
-                    <version>${cobertura-maven-plugin.version}</version>
-                    <configuration>
-                        <format>xml</format>
-                        <!-- aggregated reports for multi-module projects, for when we use modules -->
-                        <aggregate>true</aggregate>
-                    </configuration>
+                    <groupId>org.jacoco</groupId>
+                    <artifactId>jacoco-maven-plugin</artifactId>
+                    <version>${jacoco-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>prepare-agent</id>
+                            <goals>
+                                <goal>prepare-agent</goal>
+                            </goals>
+                        </execution>
+                    </executions>
                 </plugin>
 
                 <plugin>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org