Fix "The Input line is too long" Issue with the
SBT Native Packager
- Open ./project/plugins.sbt
- Add the following line among anywhere in the block other addSbtPlugin() are decleared. Just to be sure make sure there is a blank line above and below it.
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.2.0-M8")
Note: 1.2.0-M8 is probably been obsolete by the time you read this article. Check with the Github site of SBT Native Packager for the correct version.
Also in a later version (1.3.12 for example) of activator/sbt this seems to be "built in". You may not need it.
- Java Users: Open build.sbt and change the line that looks like
lazy val root = (project in file(".")).enablePlugins(PlayJava)
lazy val root = (project in file(".")).enablePlugins(PlayJava, LauncherJarPlugin)
- Scala Uses: Where it says PlayJava is PlayScala. Do not change Scala to Java.