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

Getting error after upgrading Scala version 2.13.8 -> 2.13.10 #475

Closed
vasigorc opened this issue Oct 22, 2022 · 4 comments
Closed

Getting error after upgrading Scala version 2.13.8 -> 2.13.10 #475

vasigorc opened this issue Oct 22, 2022 · 4 comments

Comments

@vasigorc
Copy link

vasigorc commented Oct 22, 2022

Hello,

We've recently upgraded Scala version from 2.13.8 to 2.13.10 in build.sbt and this prevents us from running tests with sbt-coverage plugin. Here is the summary of this and other related current configurations:

in build.sbt:

ThisBuild / scalaVersion := "2.13.10"

in build.properties

sbt.version=1.6.2

in plugins.sbt

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.0")

The application loads, compiles and tests can be run successfully, however when running sbt coverage test we get this error:

[error] (update) sbt.librarymanagement.ResolveException: Error downloading org.scoverage:scalac-scoverage-plugin_2.13.10:2.0.0
[error]   Not found
[error]   Not found
[error]   not found: $USER_HOME/.ivy2/localorg.scoverage/scalac-scoverage-plugin_2.13.10/2.0.0/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/scoverage/scalac-scoverage-plugin_2.13.10/2.0.0/scalac-scoverage-plugin_2.13.10-2.0.0.pom
[error]   not found: https://repo.osgeo.org/repository/release/org/scoverage/scalac-scoverage-plugin_2.13.10/2.0.0/scalac-scoverage-plugin_2.13.10-2.0.0.pom
[error]   not found: https://repo.typesafe.com/typesafe/releases/org/scoverage/scalac-scoverage-plugin_2.13.10/2.0.0/scalac-scoverage-plugin_2.13.10-2.0.0.pom
[error] Total time: 8 s, completed Oct. 22, 2022, 4:31:56 a.m.
@ckipp01
Copy link
Member

ckipp01 commented Oct 22, 2022

Hey @vasigorc you'll need to make sure you're on the latest version of sbt-scoverage, which is 2.0.6. Update and you should see this issue go away.

@ckipp01 ckipp01 closed this as completed Oct 22, 2022
@vasigorc
Copy link
Author

Hello @ckipp01 thank you for the follow-up. Trying that fails sbt build (sbt reload):

[error] (update) found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[error]
[error] 	* org.scala-lang.modules:scala-xml_2.12:2.1.0 (early-semver) is selected over {1.2.0, 1.1.1, 1.0.6, 1.3.0}
[error] 	    +- org.scoverage:scalac-scoverage-reporter_2.12:2.0.7 (depends on 2.1.0)
[error] 	    +- org.scalatra.scalate:scalate-util_2.12:1.9.6       (depends on 1.3.0)
[error] 	    +- org.scalariform:scalariform_2.12:0.2.0             (depends on 1.0.6)
[error] 	    +- org.scala-lang:scala-compiler:2.12.15              (depends on 1.0.6)
[error] 	    +- com.typesafe.sbt:sbt-native-packager:1.8.1 (sbtVersion=1.0, scalaVersion=2.12) (depends on 1.1.1)
[error] 	    +- com.typesafe.play:twirl-api_2.12:1.5.1             (depends on 1.2.0)
[error]
[error]
[error] this can be overridden using libraryDependencySchemes or evictionErrorLevel

I'd appreciate any suggestions.

@ckipp01
Copy link
Member

ckipp01 commented Oct 22, 2022

I'd appreciate any suggestions.

Please do search the issues before asking as this is a duplicate of #471, #469, #463, and #461. You can see more context and a workaround here.

@vasigorc
Copy link
Author

Thank you, that worked for me. I had to put the workaround in the build.sbt though. With the snippet being in plugins.sbt I still had one conflict for scala xml (with scalatest transitively pulled in by an akka lib).

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

No branches or pull requests

2 participants