Gradle Kotlin DSL 等效于 Groovy DSL compilerArgs for compileJava

Gradle Kotlin DSL equivalent for Groovy DSL compilerArgs for compileJava

对于 Gradle Java 插件,以下 Groovy DSL 的 Kotlin DSL 等效项是什么?

compileJava {
    options.compilerArgs += ['-Xdoclint:all,-missing', '-Xlint:all']
}
tasks.withType<JavaCompile> {
    options.compilerArgs.addAll(arrayOf("-parameters", "-Xdoclint:none", "-Xlint:all"))
}