sbt 0.12.4 - there were x feature warning(s); re-run with -feature for details

前端 未结 2 2135
礼貌的吻别
礼貌的吻别 2021-02-07 18:40

I get an error there were 15 feature warning(s); re-run with -feature for details :

$ /usr/local/sbt/bin/sbt
[info] Loading project definition fr         


        
2条回答
  •  忘掉有多难
    2021-02-07 19:03

    You should add

    scalacOptions += "-feature"
    

    to your build.sbt and execute reload if your sbt console is running (or restart it).

    Alternatively if you want to set it only for a single session, while in sbt console, you can write set scalacOptions += "-feature", this setting is applied immediately, no need to reload or restart sbt console.

    Re-run with -feature for details

提交回复
热议问题