mirror of https://github.com/sbt/sbt.git
fix: Remove -Wconf:cat=unused-nowarn:s
**Problem** Currently the following warning shows up while compiling metabuild: [warn] Failed to parse `-Wconf` configuration: cat=unused-nowarn:s [warn] unknown category: unused-nowarn -Wconf:cat=unused-nowarn in general was added as a Scala 2.12 of falsely warning about pure expression not doing anything in the macro. **Solution** We should be able to remove the -Wconf flag in sbt 2.x.
This commit is contained in:
parent
88f900e522
commit
56e83977e9
|
|
@ -985,15 +985,6 @@ object Defaults extends BuildCommon {
|
|||
) ++ old
|
||||
else old
|
||||
},
|
||||
scalacOptions := {
|
||||
val old = scalacOptions.value
|
||||
if (
|
||||
sbtPlugin.value && VersionNumber(scalaVersion.value)
|
||||
.matchesSemVer(SemanticSelector("=2.12 >=2.12.13"))
|
||||
)
|
||||
old ++ Seq("-Wconf:cat=unused-nowarn:s", "-Xsource:3")
|
||||
else old
|
||||
},
|
||||
persistJarClasspath :== true,
|
||||
classpathEntryDefinesClassVF := {
|
||||
val cache =
|
||||
|
|
|
|||
Loading…
Reference in New Issue