aiyanbo / sbt-dependency-updates

⬆️ SBT plugin that can check Maven and Ivy repositories for dependency and plugin updates
Apache License 2.0
81 stars 10 forks source link

Package conflicts due to updates #19

Closed carlosedp closed 2 years ago

carlosedp commented 2 years ago

We've seen some package conflicts related to scala-xml library. After updating the sbt-scoverage plugin (ref), I started getting errors due to the use of scala-xml 1.2 (newer plugins started using 2.1). I tracked down to sbt-dependency-updates since it uses scalariform and artifact-versions.

[success] Total time: 2 s, completed Jul 27, 2022, 2:05:24 PM
[error] java.lang.RuntimeException: 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}
[error]         +- org.scoverage:scalac-scoverage-reporter_2.12:2.0.1 (depends on 2.1.0)
[error]         +- org.scalariform:scalariform_2.12:0.2.10            (depends on 1.2.0)
[error]         +- org.jmotor.artifact:artifact-versions_2.12:1.0.6   (depends on 1.2.0)

Is there anything that can be done here to mitigate this? Thanks

carlosedp commented 2 years ago

I've opened:

As they get merged and published, we can bump them here too.

aiyanbo commented 2 years ago

I am very sorry for taking so long to reply to you, this issue will be solved within the next two days.

carlosedp commented 2 years ago

Thanks!

carlosedp commented 2 years ago

@aiyanbo please check https://github.com/scala-ide/scalariform/pull/294#issuecomment-1206517773 comment.

carlosedp commented 2 years ago

Awesome! Just merged and bumped the conflicting lib as well (scoverage) and worked perfectly. Thanks a lot, this is by far the best dependency check plugin for SBT.