[Gradle] Minor: Project.filesProvider add possibility to specify buildDependencies
^KT-46198
This commit is contained in:
committed by
Space
parent
33e391583d
commit
7c77ff83a7
+5
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user