I want to build a fatjar with the sbt assembly PlugIn.
How canI tell the assembly task to take only the JVM part of my project?
My build.sbt
looks like this (I leave out some irrelevant parts):
val example = crossProject.settings(
scalaVersion := "2.11.7",
version := "0.1-SNAPSHOT"
).jsSettings(
name := "Client"
).jvmSettings(
Revolver.settings:_*
).jvmSettings(
name := "Server"
)
val exampleJS = example.js
val exampleJVM = example.jvm.settings(
(resources in Compile) += {
(fastOptJS in (exampleJS, Compile)).value
(artifactPath in (exampleJS, Compile, fastOptJS)).value
}
)
As sjrd pointed out, the simple exampleJVM/assembly
works.