Mill ErrorProne Plugin
Error Prone augments the Java compiler’s type checker and detect common mistakes at compile time.
You just need to mix the ErrorProneModule
into your JavaModule
and it will automatically run with every compilation.
build.mill.scala
: Enable ErrorProne
in a modulepackage build
import mill._, scalalib._
import $ivy.`com.lihaoyi::mill-contrib-errorprone:`
import mill.contrib.errorprone.ErrorProneModule
object foo extends JavaModule with ErrorProneModule {
}
Configuration
The following configuration options exist:
def errorProneVersion: T[String]
-
The
error-prone
version to use. Defaults to , the version used to build and test the module. Find the latest at mvnrepository.com def errorProneOptions: T[Seq[String]]
-
Options directly given to the
error-prone
processor. Those are documented as "flags" at https://errorprone.info/docs/flags