devoured elysium
devoured elysium

Reputation: 105177

Why does Intellij create multiple scala code directories (scala, scala-2.10, scala-2.11) etc?

What is the reason that Intellij (or is that sbt?) creates not a single scala source directory, but multiple?

Upvotes: 1

Views: 216

Answers (1)

Alexey Romanov
Alexey Romanov

Reputation: 170815

SBT doesn't create the directories, but it recognizes them: code in scala will be compiled for all Scala versions, scala-2.10 and scala-2.11 are for version-dependent code. So when you import SBT project (or create a new one) and have "Create directories for empty content roots automatically" option checked, it makes sense for IDEA to create them (I don't know if it always does).

Upvotes: 1

Related Questions