Starting an SBT project in IntelliJ IDEA 13.0.2 Ultimate (build #UI-133.696): clarification needed -
setup:
i created new sbt project in intellij idea 13.0.2 ultimate (fig. 1).
i named project "test" (fig. 1).
after creation, fig. 2 shows project directory structure.
i have 3 main questions:
question 1:
- none of source folders (shown in fig. 5) generated idea 13.
- should create src/main/scala (and others) hand ?
question 2:
- what difference between 2 modules created ("test"- fig. 4 , "test-build" - fig. 5) ?
- which 1 should use ?
- i assume test, purpose of test-build then?
question 3:
what meaning of "target/scala-2.10/src_managed/main" source folder in "test" module (fig. 4)?
what should use ?
what kind of sources should go there ?
thanks reading.





none of source folders (shown in fig. 5) generated idea 13.
you don't need them proper sbt work , hence sbt doesn't insist on them available (and perhaps that's reason why idea doesn't create them default).
should create src/main/scala (and others) hand ?
nope. eventually, don't need bother. scala sources can go main directory of project , sbt see them.
there's caveat - you'll have use new > file create scala files main directory not marked sources root.
what difference between 2 modules created ("test"- fig. 4 , "test-build" - fig. 5) ?
test project while test-build build configuration's project. sbt recursive.
which 1 should use ?
test
i assume test, purpose of test-build then?
see sbt recursive , read entire getting started.
what meaning of "target/scala-2.10/src_managed/main" source folder in "test" module (fig. 4)? should use ? kind of sources should go there ?
it's sbt's output directory , should not worry now.
i advise reading entire getting started going sbt.
Comments
Post a Comment