简体   繁体   中英

sbt-assembly installation

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)

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM