Skip to content

Commit

Permalink
Merge pull request #1208 from xuwei-k/release-target-options
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n authored Jun 25, 2023
2 parents bbc12dd + 22b6f05 commit 96179cd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@ def baseSettings: Seq[Setting[_]] = Seq(
testFrameworks += new TestFramework("verify.runner.Framework"),
compile / javacOptions ++= Seq("-Xlint", "-Xlint:-serial"),
Test / publishArtifact := false,
scalacOptions ++= Seq("-YdisableFlatCpCaching", "-target:jvm-1.8"),
scalacOptions ++= Seq("-YdisableFlatCpCaching"),
scalacOptions += {
scalaBinaryVersion.value match {
case "2.10" | "2.11" =>
"-target:jvm-1.8"
case _ =>
"-release:8"
}
},
semanticdbCompilerPlugin := {
("org.scalameta" % "semanticdb-scalac" % semanticdbVersion.value)
.cross(CrossVersion.full)
Expand Down

0 comments on commit 96179cd

Please sign in to comment.