Slackbot
03/03/2022, 8:12 AMThomas Broyer
03/03/2022, 8:21 AMFileCollection
factory methods or from()
, so: project.files(myProvider)
CristianGM
03/03/2022, 8:29 AMTapchicoma
03/03/2022, 9:22 AMProvider<*>
is queried on configuration phase and not on execution:
@get:Input
val scriptExtensions: SetProperty<String> = ...
@get:InputFiles
@get:SkipWhenEmpty
@get:IgnoreEmptyDirectories
@get:PathSensitive(PathSensitivity.RELATIVE)
internal open val scriptSources: FileCollection = objectFactory.fileCollection().from(scriptExtensions.map { if(it.isEmpty()) emptySet() else scriptFiles.matching { ... } })
Tapchicoma
03/03/2022, 9:23 AMfrom({ scriptExtensions.map { ... } })
doesn't help as well