I compiled a project sbt project, which I use as a starting point for developing programs.
For some time I had a problem with the fact that I get 2 warnings about failure when I start a new project using this skeleton. The skeleton does not consist of any source files, and even if it is, my build.sbt file contains the "-deprecation" parameter, which works fine when writing outdated code in project sources.
The warning itself is as follows:
[info] Compilation 1 Scala source to / xxx /.../ xxx / .sbt / staging / xxx / target / scala -2.9.2 / sbt-0.12 / classes ...
[warn] there was 1 warning about the failure; restart the run with -deprecation for more information
[warning] one warning found [info] Compilation 1 Scala source in /xxx/.../xxx/project/target/scala -2.9.2 / sbt-0.12 / classes ...
[warn] there was 1 warning of failure; try running again with -deprecation for more information
[warn] one warning detected
Although the reason for the first warning seems to be an obsolete .sbt-folder problem (so this warning itself does not seem to be a big problem in my structure). I am a bit confused by the second warning, d would like to ask if anyone knows how to run sbt with the "-deprecation" option.
Just to clarify and emphasize that this is not duplication, as suggested by corefn:
scalacOptions ++ = Seq ("-unchecked", "-deprecation")
already inside, and warnings appear only when you first use sbt on the skeleton. Subsequently, sbt is silent.
There is also no error, this option works great for any source file that I store in the skeleton.
source
share