Use internal config for dependency tree (for Provided)

**Problem**
dependency-tree currently doesn't include Provided configuration,
because technically it isn't part of the Compile configuration,
however, Provided does become part of the Compile classpath during compilation.

**Solution**
This changes the implementation to use the internal configuration,
e.g. CompileInternal, which includes the auxilary configurations.

There's a tradeoff here since it means that we lose the tree view of
the platonic Compile configuration.
This commit is contained in:
Eugene Yokota 2025-11-08 14:17:00 -05:00
parent c637805538
commit 1254bd33e5
1 changed files with 2 additions and 1 deletions

View File

@ -70,8 +70,9 @@ object DependencyTreeSettings {
),
dependencyTreeModuleGraph0 := {
val sv = scalaVersion.value
val internalConfig = Configurations.internalMap(configuration.value)
val g = dependencyTreeIgnoreMissingUpdate.value
.configuration(configuration.value)
.configuration(internalConfig)
.map(
report =>
SbtUpdateReport.fromConfigurationReport(report, dependencyTreeCrossProjectId.value)