Closed arkangelboss-github closed 3 years ago
It seems that the workaround of using the latest upstream plugin doesn't work (https://github.com/scoverage/gradle-scoverage/pull/155 has been kindly submitted to fix this).
Can you try the previous version's workaround?
scoverage {
scoverageVersion = '1.4.5'
scoverageScalaVersion = '2.12.13'
}
I need to review that before we can move forward, sorry.
Stu
Hi @maiflai! and thanks for looking into this 🥇
I tried with the explicit configuration
scoverage {
scoverageVersion = '1.4.5'
scoverageScalaVersion = '2.12.13'
}
I get the same issue
Caused by: java.lang.NoSuchMethodError: scala.tools.nsc.Global.reporter()Lscala/tools/nsc/reporters/Reporter;
at scoverage.ScoverageInstrumentationComponent$$anon$1.run(plugin.scala:130)
It turns out I missed a file and it worked with the explicit configuration.
Let me know if I can try to collect more data: I cannot get past version 1.4.5 because the org.scoverage:scalac-scoverage-runtime
version is not compiled against the full scala version it seems (see https://mvnrepository.com/artifact/org.scoverage/scalac-scoverage-runtime)
Sorry for the delay, I've got past my local problems and published 6.0.0 of the plugin which should help you get past 1.4.5.
Sorry for the delay, I've got past my local problems and published 6.0.0 of the plugin which should help you get past 1.4.5.
Looking to confirm!
It seems the workaround is no longer necessary with version 6.0.0 :)
Hi all!
This seems to be the same issue (with the same stack trace) as in https://github.com/scoverage/scalac-scoverage-plugin/issues/305
Compiling using scala 2.12 builds up to 2.12.12 works fine.