The main class must be fully equipped with the package:
mainClass in Compile := Some("myPackage.aMainClass")
This will work to run, and it will set the Main-Class in the manifest when using the package task. The main class for these tasks can be set separately, as in:
mainClass in (Compile, run) := Some("myPackage.aMainClass") mainClass in (Compile, packageBin) := Some("myPackage.anotherMainClass")
Note:
mainClass := Some("myPackage.aMainClass")
doing nothing. If you put this in your build file, you will not receive a warning that it is not doing anything.
Rich Oliver Aug 13 '13 at 0:19 2013-08-13 00:19
source share