Reputation: 4480
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
Reputation: 396
tasks.withType<JavaCompile> {
options.compilerArgs.addAll(arrayOf("-parameters", "-Xdoclint:none", "-Xlint:all"))
}
Upvotes: 28