I have a multi-project setup using sbt version 0.13.5
My built.sbt looks like:
lazy val common = (project in file("app-common"))....
lazy val models = (project in file("app-common"))....
lazy val services = (project in file("app-common"))....
When I am in sbt, and I type: projects I see:
common
default-d4d83c
models
services
It is such a pain to type the entire default-a2343 (ok I might be stretching the level of pain I feel, but I am hoping it can get a bit better heeh).
It seems this is related to this statement from the sbt documentation :
If a project is not defined for the root directory in the build, sbt creates a default one that aggregates all other projects in the build.
which I take to mean that unless you define a project name for the directory ".", one will be generated automatically. This github commit seems relevant, and looks like it is using a hash from the absolute name of the directory. Simply defining project in file(".")...
would seem to be the solution.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.