1

I have two projects A and B in sibling directories. I know I can make A depend on B using RootProject:

object A extends Build {
  lazy val A = project in file(".") dependsOn(B)
  lazy val B = RootProject(file("../B"))
}

But B includes two core and extensions subprojects, and I want to depend on core only. Is this possible?

Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487

1 Answers1

1

The answer turns out to be given at SBT dependsOn RootProject: doesn't compile the dependency:

lazy val BCore = ProjectRef(file("../B"), "core")
Community
  • 1
  • 1
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487