pme
pme

Reputation: 14803

SBT: How to depend on a cross compiled module in the same project

I have two sbt-modules in my project:

When I compile in the sbt console, I get the following error:

    [error] Modules were resolved with conflicting cross-version suffixes in ProjectRef(uri("file:/Users/.../"), "core"):
    [error]    myorg:myproj-comps _2.13, _2.12

Here is my build.sbt:

lazy val comps = project.in(file("./comps"))
  .settings(...)

lazy val core = project.in(file("./core"))
  .settings(...)
  .dependsOn(comps)

How can core depends on comps to take Scala 2.13?

Upvotes: 2

Views: 455

Answers (1)

pme
pme

Reputation: 14803

It works again. All I did was:

clean

On the sbt-console.

Upvotes: 1

Related Questions