Getting started tutorial

I’m following the tutorial here: Lagom - Get started
Step by step and this occurs:

On MacOS ARMx64

lagom-scala-sbt % ./sbt runAll
[info] welcome to sbt 1.5.5 (Temurin Java 1.8.0_322)


[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-java8-compat_2.12:1.0.2 (early-semver) is selected over {0.8.0, 0.9.1, 0.9.1, 0.9.1}
[error] ± com.lightbend.lagom:lagom-akka-management-core_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-javadsl-jackson_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-api_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-dev-mode-ssl-support_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-scaladsl-play-json_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-logback_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-service-registry-client-core_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.typesafe.play:play-ahc-ws-standalone_2.12:2.1.6 (depends on 1.0.2)
[error] ± com.typesafe.play:play_2.12:2.8.11 (depends on 0.9.1)
[error] ± com.typesafe.play:play-streams_2.12:2.8.11 (depends on 0.9.1)
[error] ± com.typesafe.play:play-java_2.12:2.8.11 (depends on 0.9.1)
[error] ± com.typesafe.akka:akka-actor_2.12:2.6.17 (depends on 0.8.0)
[error]
[error]
[error] this can be overridden using libraryDependencySchemes or evictionErrorLevel
[error] at scala.sys.package$.error(package.scala:30)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:89)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:133)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:73)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:146)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:146)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:127)
[error] at sbt.util.Tracked$.$anonfun$inputChangedW$1(Tracked.scala:219)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:160)
[error] at sbt.Classpaths$.$anonfun$updateTask0$1(Defaults.scala:3678)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] at sbt.Execute.work(Execute.scala:291)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:750)
[error] (lagom-internal-meta-project-service-locator / update) found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[error]
[error] * org.scala-lang.modules:scala-java8-compat_2.12:1.0.2 (early-semver) is selected over {0.8.0, 0.9.1, 0.9.1, 0.9.1}
[error] ± com.lightbend.lagom:lagom-akka-management-core_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-javadsl-jackson_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-api_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-dev-mode-ssl-support_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-scaladsl-play-json_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-logback_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.lightbend.lagom:lagom-service-registry-client-core_2.12:1.6.7 (depends on 1.0.2)
[error] ± com.typesafe.play:play-ahc-ws-standalone_2.12:2.1.6 (depends on 1.0.2)
[error] ± com.typesafe.play:play_2.12:2.8.11 (depends on 0.9.1)
[error] ± com.typesafe.play:play-streams_2.12:2.8.11 (depends on 0.9.1)
[error] ± com.typesafe.play:play-java_2.12:2.8.11 (depends on 0.9.1)
[error] ± com.typesafe.akka:akka-actor_2.12:2.6.17 (depends on 0.8.0)

1 Like

Hi @codingbear,

Thanks for reporting this. This is a known issue when using sbt 1.5 or later as it triggers a semver check that fails for some dependencies we have.

What is surprising to me is that this is affecting Lagom in that way. I thought we had solved it already.

A quick work around for you is to downgrade to sbt 1.4.9 (latest in the 1.4.x series).

You will need to change the version in project/build.properties.
This file needs to look like:

sbt.version=1.4.9

This is will unlock you for now.

Regards,

Renato

1 Like

Hi @octonato

That fixed it thanks!

For the record, we have a fix for the template.

It has a better workaround that allows you to use more recent versions of sbt.

Note that this PR changes the original seed template. The zip you downloaded is built from this template, but it’s not yet updated.

2 Likes