Specify plugins in Build.scala
If I want to use build.scala file to build my project (instead of build.sbt)
how to specify plugins?
I want to use the sbt-assmbly plugin. and I know that I can create plugins.sb file and do addSbtPlugin there.
But I want to put all my build logic in build.scala instead of sbt files.
source to share
No, you cannot. You can put it in project/project/Build.scala
, which will allow you to avoid files .sbt
, but this is probably not what you want.
The point is that the directory is project
itself an SBT project, and SBT processes files project/*.sbt
and project/project/*.scala
files in it in the same way as at the top level; but by the time it works with project/Build.scala
it is too late to add plugins.
source to share