I cannot use `tasks.withType<VerificationTask&g...
# gradle
i
I cannot use
tasks.withType<VerificationTask> { }
because
VerificationTask
is an interface unrelated to
Task
, and the type parameter of
withType
is constrained to be a subtype of
Task
m
That is unfortunate
i
I have to resort to this dirty workaround:
Copy code
tasks.withType(VerificationTask::class.java as Class<Task>) {
        (this as VerificationTask).ignoreFailures = ignoreTestFailures
    }