7

Whenever I create an sbt project in intellij, I get something like this:

enter image description here

What is root-build here, and why is it labeled as "sources root"?

qed
  • 22,298
  • 21
  • 125
  • 196

2 Answers2

1

When you create an sbt project in IntelliJ, the default root of sbt, called root, is added as a module. You can see this by right-clicking on the project and clicking Open Module Settings. That is what root-build refers to.

You can read a description of content roots on the IDEA site.

moem
  • 556
  • 3
  • 10
0

I'm just guessing (at least I am being honest) but I believe SBT configuration itself can be considered a "development project" and so is setup as a separate module called "project" for its build, i.e. the build of the build configuration. Notice it has its own "target" directory.

Ashley Aitken
  • 2,419
  • 2
  • 20
  • 24