Reputation: 10419
When I execute
sbt package
It puts my jar into
/target/scala-2.11
I want it to be in just
/target
How do I do this?
Upvotes: 0
Views: 48
Reputation: 3964
If you see a folder like scala-2.11
in target
, this means that SBT cross-build is enabled and artifacts will be produced for each required Scala version.
If you do not need this feature (for example, you build only for scala-2.11 and don't care about others), it can be disabled in build.sbt
with
crossPaths := false
All the output previously produced in scala-2.11
folder will be placed directly into target
, including the artifact.
Upvotes: 3