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

Found conflicts in dependencies #1153

Closed
tolikr opened this issue Aug 27, 2018 · 8 comments
Closed

Found conflicts in dependencies #1153

tolikr opened this issue Aug 27, 2018 · 8 comments
Labels

Comments

@tolikr
Copy link
Contributor

tolikr commented Aug 27, 2018

Expected behaviour

'sbt' should not show any warnings.

Actual behaviour

I see warnings when i add plugin sbt-native-packager.

[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn] * org.codehaus.plexus:plexus-utils:3.0.17 is selected over {2.1, 1.5.5}
[warn] +- org.apache.maven:maven-settings:3.2.2 (depends on 3.0.17)
[warn] +- org.apache.maven:maven-repository-metadata:3.2.2 (depends on 3.0.17)
[warn] +- org.apache.maven:maven-aether-provider:3.2.2 (depends on 3.0.17)
[warn] +- org.apache.maven:maven-model:3.2.2 (depends on 3.0.17)
[warn] +- org.apache.maven:maven-core:3.2.2 (depends on 3.0.17)
[warn] +- org.apache.maven:maven-artifact:3.2.2 (depends on 3.0.17)
[warn] +- org.apache.maven:maven-settings-builder:3.2.2 (depends on 3.0.17)
[warn] +- org.apache.maven:maven-model-builder:3.2.2 (depends on 3.0.17)
[warn] +- org.sonatype.plexus:plexus-sec-dispatcher:1.3 (depends on 1.5.5)
[warn] +- org.eclipse.sisu:org.eclipse.sisu.plexus:0.0.0.M5 (depends on 2.1)
[warn] * com.google.guava:guava:20.0 is selected over {10.0.1, 16.0}
[warn] +- com.spotify:docker-client:8.9.0 (depends on 20.0)
[warn] +- com.fasterxml.jackson.datatype:jackson-datatype-guava:2.8.8 (depends on 16.0)
[warn] +- org.eclipse.sisu:org.eclipse.sisu.plexus:0.0.0.M5 (depends on 10.0.1)

Information

  • What sbt-native-packager are you using 1.3.6
  • What sbt version 1.1.6
  • What is your build system (e.g. Ubuntu, MacOS, Windows, Debian ) Ubuntu
@davideicardi
Copy link

I have the same warnings, solved using:

// resolve plugin dependencies conflict
dependencyOverrides += "org.codehaus.plexus" % "plexus-utils" % "3.0.17"
dependencyOverrides += "com.google.guava" % "guava" % "20.0"

Not sure if there are better ways...

@muuki88 muuki88 added the debian label Sep 7, 2018
@muuki88
Copy link
Contributor

muuki88 commented Sep 7, 2018

Thanks for sharing this @davideicardi ❤️

The issues came with the sbt 1.x upgrade. See the FIXME entry in the build.sbt. I haven't figured out a way to resolve this yet. The JDebPlugin seems to eagerly initialize the settings even if it's not applied.

@tolikr
Copy link
Contributor Author

tolikr commented Jan 28, 2019

Some conflicts have disappeared after updating to sbt-native-packager 1.3.15.

[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn] * org.scala-lang.modules:scala-xml_2.12:1.1.1 is selected over 1.0.5
[warn] +- com.typesafe.sbt:sbt-native-packager:1.3.15 (scalaVersion=2.12, sbtVersion=1.0) (depends on 1.0.5)
[warn] +- org.scoverage:scalac-scoverage-plugin_2.12:1.3.1 (depends on 1.0.5)
[warn] * com.google.guava:guava:20.0 is selected over 18.0
[warn] +- com.spotify:docker-client:8.14.3 (depends on 20.0)
[warn] +- com.fasterxml.jackson.datatype:jackson-datatype-guava:2.9.6 (depends on 18.0)
[warn] Run 'evicted' to see detailed eviction warnings

@muuki88
Copy link
Contributor

muuki88 commented Jan 28, 2019

From which version? Can you try 1.3.17. The docker client is now in provided scope again. So if you don't require docker, it should work fine.

@tolikr
Copy link
Contributor Author

tolikr commented Feb 4, 2019

With 1.3.17 output is:

[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn] * org.scala-lang.modules:scala-xml_2.12:1.1.1 is selected over 1.0.5
[warn] +- com.typesafe.sbt:sbt-native-packager:1.3.17 (scalaVersion=2.12, sbtVersion=1.0) (depends on 1.0.5)
[warn] +- org.scoverage:scalac-scoverage-plugin_2.12:1.3.1 (depends on 1.0.5)
[warn] Run 'evicted' to see detailed eviction warnings

@muuki88
Copy link
Contributor

muuki88 commented Feb 8, 2019

Do you use the scala-xml library somewhere or does this cause any issues?

@muuki88 muuki88 closed this as completed Feb 8, 2019
@tolikr
Copy link
Contributor Author

tolikr commented Feb 11, 2019

does this cause any issues

I think only warn message.

Do you use the scala-xml library somewhere

It used in build.sbt as project dependencies.

@muuki88
Copy link
Contributor

muuki88 commented Feb 11, 2019

Okay 👍 If this doesn't cause any issue then we're good. There tend to be a lot of eviction warnings in jvm land 😢

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

No branches or pull requests

3 participants