sbt-dependency-graph icon indicating copy to clipboard operation
sbt-dependency-graph copied to clipboard

dependency report for custom configuration does not show proper dependencies

Open kretes opened this issue 9 years ago • 1 comments

having a build file:

lazy val root = (project in file(".")).
  settings(
    name := "hello",
    version := "1.0",
    scalaVersion := "2.11.4",
libraryDependencies += "com.github.tomakehurst" % "wiremock" % "1.56" % "it",
libraryDependencies += "io.spray" %% "spray-caching" % "1.3.2"
  ).configs(IntegrationTest)
    .settings(Defaults.itSettings: _*)

when I invoke: sbt it:dependency-tree

I only get dependencies for compile scope, and not the one for 'it':

[info] hello:hello_2.11:1.0 [S]
[info]   +-io.spray:spray-caching_2.11:1.3.2 [S]
[info]     +-com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4
[info]     +-io.spray:spray-util_2.11:1.3.2 [S]

kretes avatar May 29 '15 13:05 kretes

Yes, it's only active for a selected set of configurations. It should be possible to enable it manually by adding the settings returned by

net.virtualvoid.sbt.graph.Plugin.ivyReportForConfig(IntegrationTest)

to your project (or global settings).

Let's keep this ticket to improve documentation about how to use the plugin with custom configurations.

jrudolph avatar Jun 02 '15 10:06 jrudolph