Question

I do not have a build.sbt in my root directory but I do have a Build.scala file in my project folder. For some reason two target folders are generated when compiling (one under project and one in root).

Is this behavior normal? If not, how can I fix it? If so, will telling .sbt to generate these folders/files under one folder cause any problems?

Était-ce utile?

La solution

It is normal.

The target in your root is target for your project. The target in the project directory is a target for the build definition, which itself is compiled by SBT.

SBT is recursive.

The project directory is another project inside your project which knows how to build your project. The project inside project can (in theory) do anything any other project can do. Your build definition is an sbt project.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top