diff --git a/src/main/kotlin/com/beust/kobalt/app/remote/RemoteDependencyData.kt b/src/main/kotlin/com/beust/kobalt/app/remote/RemoteDependencyData.kt index 1198cf08..fb7bc8b1 100644 --- a/src/main/kotlin/com/beust/kobalt/app/remote/RemoteDependencyData.kt +++ b/src/main/kotlin/com/beust/kobalt/app/remote/RemoteDependencyData.kt @@ -71,8 +71,7 @@ class RemoteDependencyData @Inject constructor(val executors: KobaltExecutors, v fun compileDependenciesGraph(project: Project, name: String): List { val depLambda = IClasspathDependency::directDependencies val result = - (DynamicGraph.Companion.transitiveClosureGraph(pluginDependencies, depLambda, OPTIONAL_FILTER) + - DynamicGraph.Companion.transitiveClosureGraph(project.compileDependencies, depLambda, + (DynamicGraph.Companion.transitiveClosureGraph(project.compileDependencies, depLambda, OPTIONAL_FILTER) + DynamicGraph.Companion.transitiveClosureGraph(project.compileProvidedDependencies, depLambda, OPTIONAL_FILTER)) @@ -169,7 +168,9 @@ class RemoteDependencyData @Inject constructor(val executors: KobaltExecutors, v }) } - return GetDependenciesData(projectDatas, allTasks, projectResult.taskResult.errorMessage) + val pluginFileDependencies = pluginDependencies.map { it.jarFile.get() } + return GetDependenciesData(projectDatas, allTasks, pluginFileDependencies, + projectResult.taskResult.errorMessage) } ///// @@ -193,6 +194,7 @@ class RemoteDependencyData @Inject constructor(val executors: KobaltExecutors, v class GetDependenciesData(val projects: List = emptyList(), val allTasks: Collection = emptySet(), + val pluginDependencies: List = emptyList(), val errorMessage: String?) { companion object { val NAME = "GetDependencies"