Closed ov7a closed 6 years ago
My bad. Sorry for inconvenience.
The trick was that I used assembly in assembly
instead of just assembly
.
In previous versions of sbt Assembly
was a Configuration like Compile
. But now it is only a task, so assembly in assembly
is meaningless.
I want to run a few checks for assembled jar.
I'm trying to override an assembly task with the following code (using example from https://www.scala-sbt.org/1.0/docs/Howto-Dynamic-Task.html):
and this does not work. Jar is assembled, but even the text in
println
is not printed.However, if I change
assembly
tocompile
- overriding works and the debug line is printed:What I'm doing wrong?