5

My SBT build is echoing:

[error] Note: Some input files use unchecked or unsafe operations.
[error] Note: Recompile with -Xlint:unchecked for details.

How can I pass the -Xlint:unchecked argument to the javac process invoked by SBT?

Synesso
  • 37,610
  • 35
  • 136
  • 207

1 Answers1

6

See http://code.google.com/p/simple-build-tool/wiki/BuildConfiguration#Compile_Options

override def compileOptions = super.compileOptions ++ 
  compileOptions("-Xlint:unchecked")
huynhjl
  • 41,520
  • 14
  • 105
  • 158
  • 2
    Thank you. That would work, but my assumption that it was scalac was incorrect. Javac is presenting the error messages. That same page gave me the right answer... `override def javaCompileOptions = super.javaCompileOptions ++ javaCompileOptions("-Xlint:unchecked")` – Synesso May 20 '11 at 05:57