Skip to content

Commit

Permalink
Update scalacOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k authored Jun 29, 2024
1 parent be79a66 commit a36411a
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,24 @@ val commonSettings = Def.settings(
// to merge generated sources into sources.jar as well
(f, f.relativeTo((Compile / sourceManaged).value).get.getPath)
},
scalacOptions ++= {
if (scalaBinaryVersion.value == "3") {
Nil
} else {
Seq(
"-Xsource:3",
)
}
},
scalacOptions ++= {
scalaBinaryVersion.value match {
case "2.12" =>
Seq(
"-language:higherKinds",
"-Xsource:3",
)
case "2.13" =>
Seq("-Wconf:msg=method are copied from the case class constructor:silent")
Seq(
"-Xsource:3-cross",
)
case _ =>
Nil
}
},
scalacOptions ++= Seq(
"-Wconf:origin=scala.collection.compat.*:silent",
"-deprecation",
"-language:higherKinds",
"-feature",
),
pomExtra := (
Expand Down

0 comments on commit a36411a

Please sign in to comment.