Skip to content

Commit

Permalink
Use more sensible scalac options (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich authored Jan 29, 2024
1 parent 54e97f8 commit c039608
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@ description := "sbt plugin to share certain build classes between Apache Pekko
sbtPlugin := true

javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
scalacOptions ++= Seq(
"-opt:l:inline",
"-opt-inline-from:<sources>"
// compile settings
scalacOptions ++= List(
"-unchecked",
"-deprecation",
"-language:_",
"-encoding",
"UTF-8"
)

scalacOptions ++= {
if (insideCI.value) {
val log = sLog.value
log.info("Running in CI, enabling Scala2 optimizer")
Seq(
"-opt-inline-from:<sources>",
"-opt:l:inline"
)
} else Nil
}

ThisBuild / scalaVersion := "2.12.18"

libraryDependencies ++= Seq(
Expand Down

0 comments on commit c039608

Please sign in to comment.