Skip to content

Commit

Permalink
Add supression of warning on scala-collection-compat, fatal warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hamnis committed Aug 15, 2024
1 parent c2fc613 commit 6517820
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ThisBuild / tlBaseVersion := "0.14"
ThisBuild / scalafixAll / skip := tlIsScala3.value
ThisBuild / ScalafixConfig / skip := tlIsScala3.value
ThisBuild / tlCiScalafixCheck := false // TODO: Address these in a follow up PR
ThisBuild / tlFatalWarnings := false // TODO: fix by dropping 2.12
ThisBuild / tlFatalWarnings := true
ThisBuild / tlCiReleaseTags := true
ThisBuild / tlCiReleaseBranches := Nil

Expand Down Expand Up @@ -37,6 +37,10 @@ val baseSettings = Seq(
"org.scalameta" %% "munit" % munitVersion % Test,
"org.scalameta" %% "munit-scalacheck" % munitVersion % Test
),
scalacOptions ++= {
val binVersion = scalaBinaryVersion.value
if (priorTo2_13(binVersion)) Nil else List("-Wconf:origin=scala.collection.compat.*:s")
},
Compile / unmanagedSourceDirectories += (ThisBuild / baseDirectory).value / "shared/src/main",
Test / unmanagedSourceDirectories += (ThisBuild / baseDirectory).value / "shared/src/test",
Test / unmanagedResourceDirectories += (ThisBuild / baseDirectory).value / "shared/src/test/resources",
Expand Down

0 comments on commit 6517820

Please sign in to comment.