From f2d385dada8684652347754a94871d6c3ff48922 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Fri, 8 May 2020 16:37:35 +0200 Subject: [PATCH] fix coverage profile --- .travis.yml | 2 +- pom.xml | 47 +++++++++++++++-------------------------------- 2 files changed, 16 insertions(+), 33 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95ae926..113a8df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,4 +14,4 @@ cache: - '$HOME/.m2/repository' - '$HOME/.sonar/cache' script: - - if [ "$TRAVIS_JDK_VERSION" == "openjdk11" ]; then mvn -P jacoco clean package sonar:sonar; else mvn clean test; fi + - if [ "$TRAVIS_JDK_VERSION" == "openjdk11" ]; then mvn -P coverage clean package sonar:sonar; else mvn clean test; fi diff --git a/pom.xml b/pom.xml index 9e73ef6..4f37b90 100644 --- a/pom.xml +++ b/pom.xml @@ -71,6 +71,16 @@ + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.7.0.1746 + + + + @@ -104,15 +114,7 @@ - jacoco - - - org.jacoco - org.jacoco.agent - 0.8.5 - runtime - - + coverage @@ -121,15 +123,9 @@ 0.8.5 - default-instrument + prepare-agent - instrument - - - - default-restore-instrumented-classes - - restore-instrumented-classes + prepare-agent @@ -138,22 +134,9 @@ report - - ${project.build.directory}/coverage.exec - - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.2 - - - ${project.build.directory}/jacoco.exec - - - @@ -168,7 +151,7 @@ org.apache.maven.plugins maven-source-plugin - 3.2.0 + 3.2.1 attach-sources @@ -192,7 +175,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.1.1 + 3.2.0 ${basedir}/src/main/javadoc/overview.html 1.8