首页 > 解决方案 > Scala 致命警告但不包括弃用标志不起作用

问题描述

根据https://alexn.org/blog/2020/05/26/scala-fatal-warnings.html

"-Wconf:cat=deprecation:ws,any:e"

会将警告变成错误,但弃用除外。但它给出了这个:

[error] bad option: '-Wconf:cat=deprecation:ws,any:e'
[error] (Compile / compileIncremental) Compilation failed

在哪里

scalaVersion := "2.12.12"

标签: scalasbtscalacscala-compiler

解决方案


推荐阅读