1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 07:57:12 -07:00

collect() returns a list of File.

This commit is contained in:
Cedric Beust 2017-04-05 14:48:43 -07:00
parent f93fee2d8c
commit 59d6120412

View file

@ -133,9 +133,8 @@ open class Project(
* Can be used for example as `collect(compileDependencies)`.
*/
@Directive
fun collect(dependencies: List<IClasspathDependency>) : List<String> {
fun collect(dependencies: List<IClasspathDependency>) : List<File> {
return Kobalt.context?.dependencyManager?.transitiveClosure(dependencies)?.map { it.jarFile.get() }
?.map { it.absolutePath}
?: emptyList()
}