[Gradle] Minor: Project.filesProvider add possibility to specify buildDependencies

^KT-46198
This commit is contained in:
sebastian.sellmair
2021-10-12 11:18:35 +02:00
committed by Space
parent 33e391583d
commit 7c77ff83a7
@@ -85,6 +85,9 @@ internal fun Project.newFileProperty(initialize: (() -> File)? = null): RegularF
}
}
internal fun Project.filesProvider(provider: () -> Any) : ConfigurableFileCollection {
return project.files(project.provider(provider))
internal fun Project.filesProvider(
vararg buildDependencies: Any,
provider: () -> Any
): ConfigurableFileCollection {
return project.files(project.provider(provider)).builtBy(*buildDependencies)
}