Whenever I create an sbt project in intellij, I get something like this:
What is root-build
here, and why is it labeled as "sources root"?
Whenever I create an sbt project in intellij, I get something like this:
What is root-build
here, and why is it labeled as "sources root"?
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.
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.
© 2022 - 2024 — McMap. All rights reserved.