title: Creating subproject dynamically in sbt to generate multiple dockers
body: <p>I'm have a project with a subproject to create a docker file using sbt-native-packager &amp; DockerPlugin. It worked fine.</p>
  <p>But now I have to generate 2 dockers with only a few differences: main class and arguments. The rest of the code is the same.</p>
  <p>So I tried a <code>def buildDockerProject(mainClass: String, arguments: Seq[String]</code>and so.
  After a while and fighting sbt as usual, I managed to use <code>sbt.project.Apply()</code>and it kind of worked.</p>
  <p>But when I <code>publishLocal</code>, it does not generate a docker file even when I explicitly specify the project to use.</p>
  <p>Any idea why?</p>