Search code examples
scalasbtsbt-native-packager

Change name in universal package of sbt-native-packager


I want to attach sbt-native-packager to a root-aggregate of a project, but that root project has published name for Maven of "foobar". I want the artifact generated through universal:packageBin to consistently use "foo" instead.

How do I accomplish this?

I tried

name in Universal := "foo"
executableScriptName in Universal := "foo"

etc. None has an effect. I end up having bin/foobar and bin/foobar.bat.


Solution

  • executableScriptName is not properly scoped, so you have to do the following"

    executableScriptName := "foo"