Skip to content

Omitting "->compile" in dependsOn leads to the dependency not being processed #375

@martin-stone

Description

@martin-stone

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions