How set html5 javadoc option in Gradle build with Kotlin


(Vincent Hullaert) #1

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


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