Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using Scala's patch version to determine the artifactId of the scalac-scoverage-plugin #94

Closed
stewartHutchins opened this issue May 25, 2021 · 3 comments · Fixed by #95

Comments

@stewartHutchins
Copy link

Hi,

We are currently trying to use the check goal with the scoverage-maven-plugin version: 1.4.1 and Scala version 2.12.13

When configuring scalacPluginVersions with value: 1.4.1 or 1.4.2 we get the following error:
java.lang.NoSuchMethodError: scala.tools.nsc.Global.reporter()Lscala/tools/nsc/report

When using scalacPluginVersions: 1.4.3 or greater we get an error similar to the following:
Could not find artifact org.scoverage:scalac-scoverage-plugin-2.12:jar:1.4.7 in <internal-repository>); this is during the pre-compile stage

Based on this sbt-scoverage issue we gather that the Scala 2.12.13 compiler not backwards compatible (resulting in the 1st error). I'm assuming this is why the scala-scoverage-plugin has begun to include Scala's patch version as part of it's artifactId.
Additionally, based on SCoveragePreCompileMojo we gather that the plugin ignores Scala's patch version when determining which version of the scalac-scoverage-plugin to use (resulting in the 2nd error).

If the above seems correct and reasonable, would you consider updating the maven plugin so that we are able to use a newer version of the scalac-scoverage-plugin - allowing us to use SCoverage with Scala 2.12.13?

Please let me know if the provided information is not sufficient.

Thanks,
Stewart

@stewartHutchins stewartHutchins changed the title Use use scala's patch version to determine the correct scoverage-scalac-plugin Consider using scala's patch version to determine the correct version of scoverage-scalac-plugin May 25, 2021
@stewartHutchins stewartHutchins changed the title Consider using scala's patch version to determine the correct version of scoverage-scalac-plugin Consider using Scala's patch version to determine the correct version of scoverage-scalac-plugin May 25, 2021
@stewartHutchins stewartHutchins changed the title Consider using Scala's patch version to determine the correct version of scoverage-scalac-plugin Consider using Scala's patch version to determine the artifactId of the scoverage-scalac-plugin May 25, 2021
@stewartHutchins stewartHutchins changed the title Consider using Scala's patch version to determine the artifactId of the scoverage-scalac-plugin Consider using Scala's patch version to determine the artifactId of the scalac-scoverage-plugin May 25, 2021
@thongpham281
Copy link

i have the same problem (error 1) :(( waiting for new version for maven

@chetanmeh
Copy link
Contributor

Raised PR #95 to follow above suggestion

gslowikowski added a commit that referenced this issue Jan 30, 2022
Add warning message while falling back from specific to main Scala version
@gslowikowski
Copy link
Member

Version 1.4.11 addressing this issue was released today (version number aligned with the latest version of scalac-scoverage-plugin).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants