We have a Java or Scala app that has some dependencies and one entry point.
We would like to:
- have all needed jars in a directory call i.e.
- be able to start our app by simply executing "java -jar myapp.jar".
- we have the a multiproject
- the project
myappholds the entry point
then this would the our
build.sbt would be something like this:
We are filtering
scala-library.jar as this app is Java-based. SBT always adds
In this way, all the needed classpath is already coded in the
MANIFEST.MF and it's easier to launch our app.
This has been tested with
If your use recent versions of Java, another alternative is to use: