i'm using sbt 0.13.8 , sbt-assembly 0.13.0 in multi-module project. works great until try turn off tests during assembly.
as instructed in docs add line
test in assembly := {} in settings of 1 of modules , following error
/users/lanny/work/ideaprojects/search/build.sbt:61: error: type mismatch; found : sbt.taskkey[sbt.file] required: java.io.file test in assembly := {}, ^ sbt.compiler.evalexception: type error in expression i'd happy show results of 'inspect test' alas, cannot run sbt without removing line causing error. here's see line removed.
[info] set current project search-hadoop (in build file:/users/lanny/work/ideaprojects/search/) > inspect assembly::test [info] task: unit [info] description: [info] executes tests. [info] provided by: [info] {file:/users/lanny/work/ideaprojects/search/}hadoop/*:assembly::test [info] defined at: [info] (sbtassembly.assemblyplugin) assemblyplugin.scala:32 [info] dependencies: [info] hadoop/test:test [info] reverse dependencies: [info] hadoop/*:assemblypackagescala::test [info] hadoop/*:assemblypackagedependency::test [info] hadoop/*:assembly [info] delegates: [info] hadoop/*:assembly::test [info] hadoop/*:test [info] {.}/*:assembly::test [info] {.}/*:test [info] */*:assembly::test [info] */*:test [info] related: [info] test/*:assemblypackagedependency::test [info] third_party/test:test [info] third_party/*:assemblypackagedependency::test [info] search/*:assembly::test [info] search/*:assemblypackagescala::test [info] server/*:assemblypackagedependency::test [info] search/*:assemblypackagedependency::test [info] server/test:test [info] hadoop/test:test [info] hadoop/*:assemblypackagescala::test [info] ...
sbt.keys.test in assembly := {} does trick.
Comments
Post a Comment