mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Update GetDependenciesCommand.
This commit is contained in:
parent
74b03b4b64
commit
4560956517
1 changed files with 4 additions and 2 deletions
|
@ -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<DependencyData>)
|
||||
class ProjectData(val name: String, val directory: String, val dependencies: List<DependencyData>,
|
||||
val sourceDirs: Set<String>, val testDirs: Set<String>)
|
||||
|
||||
class GetDependenciesData(val projects: List<ProjectData>)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue