sbt assembly command not found

Did you create a assembly.sbt at the root of your project? Alongside your build.sbt? If so, then that’s the problem. You want to have it inside the project directory. Having done that it worked out the box as expected with the rest of your setup: > assembly [info] Including: scala-library.jar [info] Checking every *.class/*.jar file’s … Read more

How to add “provided” dependencies back to run/test tasks’ classpath?

For a similar case I used in assembly.sbt: run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run)) and now the ‘run’ task uses all the libraries, including the ones marked with “provided”. No further change was necessary. Update: @rob solution seems to be the only one working on latest … Read more

How to add “provided” dependencies back to run/test tasks’ classpath?

For a similar case I used in assembly.sbt: run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run)) and now the ‘run’ task uses all the libraries, including the ones marked with “provided”. No further change was necessary. Update: @rob solution seems to be the only one working on latest … Read more

How to add “provided” dependencies back to run/test tasks’ classpath?

For a similar case I used in assembly.sbt: run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run)) and now the ‘run’ task uses all the libraries, including the ones marked with “provided”. No further change was necessary. Update: @rob solution seems to be the only one working on latest … Read more

What are key differences between sbt-pack and sbt-assembly?

(Disclaimer: I maintain sbt-assembly) sbt-assembly sbt-assembly creates a fat JAR – a single JAR file containing all class files from your code and libraries. By evolution, it also contains ways of resolving conflicts when multiple JARs provide the same file path (like config or README file). It involves unzipping of all library JARs, so it’s … Read more

How to fix sbt reporting “Error wrapping InputStream in GZIPInputStream: java.io.EOFException”?

It appears that the exception has been due to some problems with the local repo. After cleanup, e.g. removing target directories from ~/.sbt directory it’s now working fine. jacek:~/.sbt $ find . -name target | xargs rm -rf jacek:~/sandbox/stackoverflow/testaaa $ sbt [info] Loading global plugins from /Users/jacek/.sbt/0.13/plugins [info] Updating {file:/Users/jacek/.sbt/0.13/plugins/}global-plugins… [info] Resolving org.fusesource.jansi#jansi;1.4 … [info] … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)