I have two Projects:
val common = Project("common", file("common"))
.enablePlugins(PlayScala)
val frontend = Project("frontend", file("frontend"))
.enablePlugins(PlayScala)
.dependsOn(common).aggregate(common)
Now, I want to do a docker build, which works out of the box, but when I do
sbt "project frontend" docker:publish
it will publish both modules to docker. How can I prevent pushing the common
module to my docker registry.
You can either remove the aggregate(commons)
or override the docker:publishLocal
task like this:
...
. settings(
publishLocal in Docker := {}
)