Jakub Chrzanowski
09/28/2022, 5:53 AMVerificationTask
? Does that interface provide a unified setter/getter, or is there any logic within Gradle internals?Vampire
09/28/2022, 9:26 AMtasks.withType<VerificationTask>().configureEach { ... }
or similar, but at least in the Gradle sources I see no such configuration.
I don't think there is any additional implication.Thomas Broyer
09/28/2022, 12:30 PMtasks.withType<VerificationTask>()
because VerificationTask
isn't itself a Task
(it would probably work with the Groovy DSL and thanks to type erasure)Vampire
09/28/2022, 12:41 PMVerificationTask
does not extend Task
. 😞Jakub Chrzanowski
09/28/2022, 12:46 PMignoreWarnings
lazy property introduced explicitly in my task.
@get:Input
abstract val ignoreWarnings: Property<Boolean>
Now, after I started using Managed Types, I run into conflicts – setter and getter are created for Property<Boolean>
, but methods from that interface are raw Boolean
. It was manageable previously, but now too much magic is involved and the easiest solution is to drop VerificationTask
completely as syntax for end-user will not change (ok, for Kotlin DSL will, but that’s acceptable).Vampire
09/28/2022, 12:52 PMJakub Chrzanowski
09/28/2022, 12:53 PM