Timeline for How run sbt assembly command without tests from command line?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 9, 2019 at 20:59 | comment | added | mcw |
If you're doing this inside an sbt prompt, run them as three individual tasks, with no quotes: set test in Test := {} , clean , assembly
|
|
Dec 28, 2018 at 20:33 | comment | added | prayagupadhyay |
adding test in assembly := {} to module2/build.sbt not root/build.sbt is working as mentioned in github.com/sbt/sbt-assembly. need to find equivalent in terminal
|
|
Dec 8, 2018 at 5:47 | comment | added | prayagupadhyay |
sbt 'set test in assembly := {}' clean assembly still runs scalatest Specs on macos/ sbt 1.0
|
|
Aug 26, 2015 at 4:45 | comment | added | kshakir |
That might not be a sbt version problem, but due to an older sbt-assembly . Try the more universal "set test in Test := {}" . What version of sbt-assembly is listed within your plugins directory? The docs for both 0.11.2 & 0.13.0 both say to use the same above syntax within the build.sbt. But I'm guessing perhaps when using the older plugin that setting may not be available via the sbt console, and hence not on the command line.
|
|
Aug 25, 2015 at 20:02 | comment | added | Metropolis | On a Mac, sbt 0.13.7 I get <set>:1: error: not found: value assembly [error] Type error in expression" Is this really an issue of 13.7 vs 13.8? | |
Aug 4, 2015 at 3:44 | vote | accept | Cherry | ||
Aug 4, 2015 at 3:44 | history | edited | Cherry | CC BY-SA 3.0 |
added 78 characters in body
|
Aug 2, 2015 at 15:54 | comment | added | kshakir |
Edited. Quoting is quite different in windows, so tried to make this answer generic enough to get folks started by just using double quotes for this specific answer. In general, the principle is that you want to pass a single argument, often unescaped, to sbt with your entire "set …". Also note you can pass multiple "set " statements as separate command line arguments, or by semicolon separating the statements within one quoted argument.
|
|
Aug 2, 2015 at 15:49 | history | edited | kshakir | CC BY-SA 3.0 |
For windows users, switched from "single quotes" to just "quotes"
|
Jul 31, 2015 at 2:46 | history | answered | kshakir | CC BY-SA 3.0 |