Install sbt assembly

I am trying to use sbt-assembly and I have problems installing it.

Verbatim from readme I added the /plugins.sbt project with a dependency:

addSbtPlugin ("com.eed3si9n"% "sbt-assembly"% "0.8.7")

Then I added a build.sbt file containing what readme said:

import AssemblyKeys ._ // put this at the top of the file

assemblySettings

I get this error when running sbt:

[error] /Users/me/git/stest/project/Build.scala:29: not found: value assemblySettings [error] .settings (assemblySettings: _ *) [error] ^ [error] one error was found [error] ( compilation: compilation) Compilation error

I came back and tried an alternative that I saw in another stackoverflow article:

(SEQ assemblySettings: _ *)

Same problem. Any ideas? (Scala 2.10.0)

+6
source share
1 answer

The author of the plugin is here. You said you were asking exactly what build.sbt says, but the error comes from build.scala. * .sbt automatically imports a few things, so you need to manually import them for build.scala.

For a complete configuration, see https://github.com/eed3si9n/sbt-assembly-full-config-sample/blob/master/project/builds.scala .

+4
source

All Articles