Adding new task dependencies to built-in SBT tasks?

前端 未结 4 2009
耶瑟儿~
耶瑟儿~ 2021-02-01 03:43

Is it possible to override or modify built-in SBT tasks (like compile) to depend on custom tasks in my own Build.scala? Overriding e.g. \"compile\" directly is not possible sinc

4条回答
  •  太阳男子
    2021-02-01 04:19

    In the base_dir/project/ folder create a file build.sbt and put libraryDependencies += ... there.

    That's the idiomatic SBT way to build your "build project", also known as "Meta Build".

提交回复
热议问题