From 1254bd33e504501356cf10fb418efe9b5d779f0f Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Sat, 8 Nov 2025 14:17:00 -0500 Subject: [PATCH] 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. --- main/src/main/scala/sbt/plugins/DependencyTreeSettings.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/src/main/scala/sbt/plugins/DependencyTreeSettings.scala b/main/src/main/scala/sbt/plugins/DependencyTreeSettings.scala index 85618a77d..977703744 100644 --- a/main/src/main/scala/sbt/plugins/DependencyTreeSettings.scala +++ b/main/src/main/scala/sbt/plugins/DependencyTreeSettings.scala @@ -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)