Igor Mukhin
07/11/2024, 2:26 PMabstract class ExtractOpenApiSchemasTask : DefaultTask() {
@get:Input
abstract val schemaJsonPostfix: Property<String>
init {
schemaJsonPostfix.convention(".schema.json")
}
//...
}
Is it the right way to set a default value for the schemaJsonPostfix ?
(I am asking because I get a warning from the IntelliJ on the line inside the init-block: "Accessing non-final property schemaJsonPostfix in constructor")Niels Doucet
07/11/2024, 2:35 PMephemient
07/11/2024, 2:37 PMephemient
07/11/2024, 2:38 PMIgor Mukhin
07/11/2024, 2:44 PM