Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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']
}
like image 620
XDR Avatar asked May 24 '18 22:05

XDR


Video Answer


1 Answers

tasks.withType<JavaCompile> {
    options.compilerArgs.addAll(arrayOf("-parameters", "-Xdoclint:none", "-Xlint:all"))
}
like image 86
Alvin Avatar answered Oct 24 '22 06:10

Alvin