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"?
The project root is the folder which is the parent for all the project sources. By default, all subfolders in this folder are treated as sources and their files are involved in indexing, searching, parsing, code completion, and so on.
Content roots Content in IntelliJ IDEA is a group of files that contain your source code, build scripts, tests, and documentation. These files are usually organized in a hierarchy. The top-level folder is called a content root.
Build command, IntelliJ IDEA compiles all the classes inside your build target and places them inside the output directory. When you change any class inside the build target and then execute the build action, IntelliJ IDEA performs the incremental build that compiles only the changed classes.
In a computer file system, and primarily used in the Unix and Unix-like operating systems, the root directory is the first or top-most directory in a hierarchy. It can be likened to the trunk of a tree, as the starting point where all branches originate from.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With