mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
collect() returns a list of File.
This commit is contained in:
parent
f93fee2d8c
commit
59d6120412
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue