Found a solution from command line:
sbt
set scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
compile
And found the cause of the warning:
[warn] Blah.scala:53: Adaptation of argument list by inserting () has been deprecated: leaky (Object-receiving) target makes this especially dangerous.
[warn] signature: Logger.error(x$1: Any): Unit
[warn] given arguments: <none>
[warn] after adaptation: Logger.error((): Unit)
[warn] logger.error()
[warn] ^
[warn] one warning found
The problem is that I used a deprecated function call logger.error()
. It is weird that IntelliJ does not give any lint error though.
Reference: https://stackoverflow.com/a/9578787/1035008