Reputation: 259
How to avoid the creation of multiple scala directories in sbt project automatically ?
___ main
|_ java
|_ ressources
|_ scala
|_ scala-2.11
___ test
|_ java
|_ ressources
|_ scala
|_ scala-2.11
my sbt file :
name := "test"
version := "1.0"
scalaVersion := "2.11.7"
Upvotes: 0
Views: 292
Reputation: 4100
Did you create your project using IntelliJ IDEA? I've seen this a lot and it's actually misleading.
You can safely delete the directories you're not going to use. src/main/scala
is where source files are expected. src/main/resources
is for files you want to include in your jar (or be accessible anyway at runtime), and src/main/java
is for Java sources (obviously test
counterparts apply for every directory).
Source: http://www.scala-sbt.org/0.13/docs/Directories.html (which doesn't mention at all scala-2.11)
Upvotes: 3