Closed davidgoate closed 6 years ago
Hi @davidgoate, this library does not support Java 10 yet. Same as https://github.com/codacy/codacy-coverage-reporter/issues/76 I will open an internal ticket and see how we will progress. We still have no news but we should be able to start working on this in the next weeks.
I have a workaround, if i extract the stage I can set a different jdk tool:
stage('Upload Codacy Coverage') {
tools {
jdk 'JDK8'
}
environment {
CODACY_CREDENTIAL_NAME = "${JOB_PREFIX}-codacy-token"
}
steps {
echo 'Uploading code coverage to Codacy...'
script {
echo "Using Credential Name: ${CODACY_CREDENTIAL_NAME}"
withCredentials([string(credentialsId: "${CODACY_CREDENTIAL_NAME}", variable: 'projectToken')]) {
sh 'java -jar /var/lib/jenkins/codacy-coverage-upload.jar report -l Java -r target/site/jacoco/jacoco.xml --project-token ${projectToken}'
}
}
}
}
In the meantime you might want to change the README.md, which falsely states:
Requirements Java JRE 8 and higher
Any progress on this? Need any help?
@igorstojanovski we have not been able to pick this up. In this case I think the solution would be to remove rapture and use circe or something similar for serialisation. Feel free to send a PR.
@davidgoate, @overheadhunter, @igorstojanovski as described in https://github.com/codacy/codacy-coverage-reporter/pull/89 we were able to do a quick hack to avoid the issue. Can you try it and see if it works.
Released as version 4.0.2
.
@rtfpessoa works like a charm 👍 Thanks a lot!
Can you try it and see if it works.
I can also confirm the fix. Runs on JDK 9 and JDK 10 CI systems as expected.
Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)
Linux 4.14.33-51.34.amzn1.x86_64 #1 x86_64 GNU/Linux
JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
Oracle 10.0.1
Expected Behavior
Coverage is uploaded.
Actual Behavior
Error