diff --git a/plugins/package-managers/maven/src/main/kotlin/Maven.kt b/plugins/package-managers/maven/src/main/kotlin/Maven.kt index a7c81b89a31e4..781331663c3b8 100644 --- a/plugins/package-managers/maven/src/main/kotlin/Maven.kt +++ b/plugins/package-managers/maven/src/main/kotlin/Maven.kt @@ -121,10 +121,11 @@ class Maven( version = mavenProject.version ) - projectBuildingResult.dependencies.filterNot { excludes.isScopeExcluded(it.dependency.scope) } - .forEach { node -> - graphBuilder.addDependency(DependencyGraph.qualifyScope(projectId, node.dependency.scope), node) - } + projectBuildingResult.dependencies.filterNot { + excludes.isScopeExcluded(it.dependency.scope) + }.forEach { node -> + graphBuilder.addDependency(DependencyGraph.qualifyScope(projectId, node.dependency.scope), node) + } val declaredLicenses = parseLicenses(mavenProject) val declaredLicensesProcessed = processDeclaredLicenses(declaredLicenses)