Skip to content

Commit

Permalink
add scalacOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Apr 27, 2024
1 parent abec55b commit e4d24f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ lazy val scalapropsMagnolia = project
name := UpdateReadme.scalapropsMagnoliaName
description := "Generation of arbitrary case classes / ADTs instances with Scalaprops and Magnolia"
scalacOptions ++= unusedWarnings
scalacOptions += {
scalaBinaryVersion.value match {
case "2.13" =>
"-Xsource:3-cross"
case "2.12" =>
"-Xsource:3"
}
}
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
Expand Down

0 comments on commit e4d24f2

Please sign in to comment.