XDR
XDR

Reputation: 4480

Gradle Kotlin DSL equivalent for Groovy DSL compilerArgs for compileJava

For the Gradle Java plugin, what is the Kotlin DSL equivalent for the following Groovy DSL?

compileJava {
    options.compilerArgs += ['-Xdoclint:all,-missing', '-Xlint:all']
}

Upvotes: 14

Views: 2929

Answers (1)

Alvin
Alvin

Reputation: 396

tasks.withType<JavaCompile> {
    options.compilerArgs.addAll(arrayOf("-parameters", "-Xdoclint:none", "-Xlint:all"))
}

Upvotes: 28

Related Questions