Question

I'm using sbt-native-packager 0.7.0-RC3 to package some of my application and many times I need to package with another mainClass.

When in dev mod i use this :

mainClass in (Compile, run) := Some("package.blabla.Dev")

And when packaging i want to use this :

mainClass in Debian := Some("package.blabla.Prod")

I try with "in Debian" but it don't work.

Is there any way to do this ?

Was it helpful?

Solution

Since this pull request you can start choose a main class which should be started. Just add -main your.production.Main to src/templates/etc-default and enable the java_server archetype.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top