Hi,
in a custom task I have define a file property
open class SomeTask() : DefaultTask() {
val somePath = project.objects.fileProperty()
}
I would like to add some convention
open class SomeTask() : DefaultTask() {
val somePath = project.objects.fileProperty().convention(file("/some/path/here"))
}
but convention()
require RegularFileProperty
as input type.
What is the idiomatic way to define a default value for a fileProperty ?