1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Simplify.

This commit is contained in:
Cedric Beust 2017-02-17 13:43:53 -08:00
parent bd55768c2b
commit 4f78e911e3

View file

@ -116,7 +116,7 @@ class RemoteDependencyData @Inject constructor(val executors: KobaltExecutors, v
}
fun testDependenciesGraph(project: Project, name: String): List<DependencyData> {
val depLambda = { dep : IClasspathDependency -> dep.directDependencies() }
val depLambda = IClasspathDependency::directDependencies
return DynamicGraph.Companion.transitiveClosureGraph(project.testDependencies, depLambda, OPTIONAL_FILTER)
.map { toDependencyData2("testCompile", it)}
}