I have old and big Java project in which I want to start using Scala. All Java sources are stored in /src
. Unfortunately I cannot move them to standard /src/main/java
directory because there are tons of old Ant scripts and etc.
So my goal is to have new Scala source and resources in /srcnew
and keep Java stuff in /src
. So I wrote following in build.scala
sourceDirectory := baseDirectory.value / "srcnew",
javaSource := baseDirectory.value / "src",
And it doesn't work :) SBT doesn't see source in javaSource
at all.
What am I missing ?