Building Executable JARs in Scala with sbt
The simplest approach creates a JAR with just your project’s compiled classes: sbt package This outputs to target/scala-2.x.y/projectname_2.x.y-zz.jar. The naming convention includes the Scala version to prevent classpath conflicts when multiple Scala versions coexist. For iterative development, use watch mode: sbt ~package This rebuilds the JAR after every source change. However, this JAR only contains…
