From 5f590b0a48411aaa5cff9173ec1d4205ddc8de52 Mon Sep 17 00:00:00 2001 From: Steve Swinsburg Date: Wed, 30 Oct 2019 07:35:02 +1100 Subject: [PATCH 1/4] Updated README to note Cobertura and JDK11 restriction In order to use Cobertura with Travis, you must specify an earlier version of the JDK. Cobertura will not work with travis out of the box as Travis uses JDK 11 (currently). The build will fail with: ``` [ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument (default-cli) on project xbdd-maven-plugin: Execution default-cli of goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:0 at specified path /usr/local/lib/jvm/openjdk11/../lib/tools.jar -> [Help 1] ``` --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index e13f0cb..9074a6b 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,12 @@ Add to your `.travis.yml` file. ```yml language: java +# Cobertura is not supported in JDK11 so you must downgrade the JDK that Travis uses if you want to use Cobertura with Travis. +jdk: + - oraclejdk8 + - oraclejdk9 + - openjdk8 + script: "mvn cobertura:cobertura" after_success: From 39b7f7cf962154bed33e94e174b258889c67fa5b Mon Sep 17 00:00:00 2001 From: Steve Swinsburg Date: Wed, 30 Oct 2019 07:49:12 +1100 Subject: [PATCH 2/4] Add the settings to the example .travis.yml too --- .travis.yml | 5 +++++ README.md | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4656aeb..2d30925 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,9 @@ language: java + +# Cobertura is not supported in JDK11 so you must downgrade the JDK that Travis uses if you want to use Cobertura with Travis. +jdk: + - openjdk8 + sudo: false # faster builds script: "mvn cobertura:cobertura" diff --git a/README.md b/README.md index 9074a6b..a9c2b55 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ language: java # Cobertura is not supported in JDK11 so you must downgrade the JDK that Travis uses if you want to use Cobertura with Travis. jdk: - - oraclejdk8 - - oraclejdk9 - openjdk8 script: "mvn cobertura:cobertura" From 32159741051802f8057e2de0a8137eedf15622b1 Mon Sep 17 00:00:00 2001 From: Thomas Hu Date: Thu, 6 Aug 2020 21:20:38 -0400 Subject: [PATCH 3/4] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 2d30925..a14008a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: java # Cobertura is not supported in JDK11 so you must downgrade the JDK that Travis uses if you want to use Cobertura with Travis. +# https://github.com/cobertura/cobertura/issues/381 jdk: - openjdk8 From 223250f226bfd6e6bbf5a4199c07873f1f43b913 Mon Sep 17 00:00:00 2001 From: Thomas Hu Date: Thu, 6 Aug 2020 21:20:51 -0400 Subject: [PATCH 4/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a9c2b55..36f5d15 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Add to your `.travis.yml` file. language: java # Cobertura is not supported in JDK11 so you must downgrade the JDK that Travis uses if you want to use Cobertura with Travis. +# See https://github.com/cobertura/cobertura/issues/381 jdk: - openjdk8