From 45609565172bef009b7d121e1dfe78e65aced86b Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 17 Dec 2015 00:52:30 +0400 Subject: [PATCH] Update GetDependenciesCommand. --- .../com/beust/kobalt/app/remote/GetDependenciesCommand.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/app/remote/GetDependenciesCommand.kt b/src/main/kotlin/com/beust/kobalt/app/remote/GetDependenciesCommand.kt index b766b336..295f1525 100644 --- a/src/main/kotlin/com/beust/kobalt/app/remote/GetDependenciesCommand.kt +++ b/src/main/kotlin/com/beust/kobalt/app/remote/GetDependenciesCommand.kt @@ -59,7 +59,8 @@ class GetDependenciesCommand @Inject constructor(val executors: KobaltExecutors, allDeps(project.testDependencies).map { toDependencyData(it, "testCompile") } + allDeps(project.testProvidedDependencies).map { toDependencyData(it, "testProvided") } - projectDatas.add(ProjectData(project.name, allDependencies)) + projectDatas.add(ProjectData(project.name, project.directory, allDependencies, + project.sourceDirectories, project.sourceDirectoriesTest)) } log(1, "Returning BuildScriptInfo") val result = toCommandData(Gson().toJson(GetDependenciesData(projectDatas))) @@ -73,7 +74,8 @@ class GetDependenciesCommand @Inject constructor(val executors: KobaltExecutors, class DependencyData(val id: String, val scope: String, val path: String) - class ProjectData( val name: String, val dependencies: List) + class ProjectData(val name: String, val directory: String, val dependencies: List, + val sourceDirs: Set, val testDirs: Set) class GetDependenciesData(val projects: List) } \ No newline at end of file