Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is root-build in intellij?

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"?

like image 428
qed Avatar asked Nov 06 '15 13:11

qed


People also ask

What is the project root in IntelliJ?

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.

What is the root folder in IntelliJ?

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.

What is the use of build in IntelliJ?

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.

What is root directory is used for?

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.


1 Answers

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.

like image 91
moem Avatar answered Oct 21 '22 10:10

moem