Skip to content

Commit

Permalink
update scalacOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Aug 31, 2024
1 parent 711e146 commit 51388df
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ publishTo := {
scalacOptions := Seq("-deprecation", "-feature")

scalacOptions ++= {
if (scalaBinaryVersion.value != "3") {
Seq("-Xsource:3")
} else {
Nil
scalaBinaryVersion.value match {
case "2.12" =>
Seq("-Xsource:3")
case "2.13" =>
Seq("-Xsource:3-cross")
case _ =>
Nil
}
}

Expand Down

0 comments on commit 51388df

Please sign in to comment.