Phillip Schichtel
07/02/2024, 10:47 PMDirectoryProperty type I also need to declare it @InputDirectory and now the contents are considered part of the input. When I declare it as a Property<File> with @Input works as I want it to, but I'd prefer a type that requires it to be a directory.
Is File my only option or are there other types I'm not aware of?Sergej Koščejev
07/03/2024, 6:50 AM@Internal and declare another property (could be protected) that would compute the actual input (if it’s somehow relevant for the task) and would be annotated as @Input .
E.g. something like this:
@get:Internal("covered by myPath")
val myProperty: DirectoryProperty = ...
@get:Input
protected val myPath: Provider<String> = myProperty.map { it.asFile.path }Vampire
07/03/2024, 9:10 AM