Question

I'm trying to use sbt-assembly and am having trouble getting it installed.

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

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

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

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

assemblySettings

I get this error when launching sbt:

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

I went back and tried an alternate I saw in another stackoverflow post:

seq(assemblySettings:_*)

Same problem. Any ideas? (Scala 2.10.0)

Was it helpful?

Solution

The author of the plugin here. You said you put exactly what build.sbt says, but the error is coming from build.scala. *.sbt file automatically imports several things, so you have to manually import them for build.scala.

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

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