Open martin-stone opened 1 year ago
The SBT docs say:
Omitting the ->config part implies ->compile, so dependsOn(util % "test") means that the test configuration in core depends on the Compile configuration in util.
https://www.scala-sbt.org/1.x/docs/Multi-Project.html#Per-configuration+classpath+dependencies
In my case I have .dependsOn(util % "compile;it->it") and the util dependency is not packed.
.dependsOn(util % "compile;it->it")
I think the issue is here:
def isCompileConfig(cp: ClasspathDep[ProjectRef]) = cp.configuration.forall(_.contains("compile->"))
https://github.com/jonfox/sbt-pack/blob/master/src/main/scala/xerial/sbt/pack/PackPlugin.scala#L417
The SBT docs say:
https://www.scala-sbt.org/1.x/docs/Multi-Project.html#Per-configuration+classpath+dependencies
In my case I have
.dependsOn(util % "compile;it->it")
and the util dependency is not packed.I think the issue is here:
https://github.com/jonfox/sbt-pack/blob/master/src/main/scala/xerial/sbt/pack/PackPlugin.scala#L417