How set html5 javadoc option in Gradle build with Kotlin

Hy,

I’m trying to set html5 option in gradle javadoc task (kts) I guess I must start with something like that:

tasks.withType<Javadoc> {

}

But how I set addBooleanOption ‘html5’, true?

Thxs for helping

tasks.withType<Javadoc> {
    (options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}