From 7576896399dcc56071ab65b63a710e787026e273 Mon Sep 17 00:00:00 2001 From: Mike Cumings Date: Fri, 26 Sep 2025 17:37:27 -0700 Subject: [PATCH] Ensure that dependencies added in afterEvaluate are correctly picked up. --- .../ebay/plugins/graph/analytics/GraphAnalyticsPlugin.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/ebay/plugins/graph/analytics/GraphAnalyticsPlugin.kt b/src/main/kotlin/com/ebay/plugins/graph/analytics/GraphAnalyticsPlugin.kt index 871aca3..920a57b 100644 --- a/src/main/kotlin/com/ebay/plugins/graph/analytics/GraphAnalyticsPlugin.kt +++ b/src/main/kotlin/com/ebay/plugins/graph/analytics/GraphAnalyticsPlugin.kt @@ -246,8 +246,11 @@ internal class GraphAnalyticsPlugin : Plugin { } } - val projectDependencies = config.allDependencies.filterIsInstance() - projectDependencies.map { it.path }.forEach { depProjectPath -> + config.allDependencies.configureEach { dependency -> + if (dependency !is ProjectDependency) { + return@configureEach + } + val depProjectPath = dependency.path addDependency( project = project, configuration = dependenciesConfig,