From c03960851d33e40563c282ea796f849ade81a387 Mon Sep 17 00:00:00 2001 From: Matthew de Detrich Date: Mon, 29 Jan 2024 12:27:37 +0100 Subject: [PATCH] Use more sensible scalac options (#10) --- build.sbt | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 00151e3..c2694ae 100644 --- a/build.sbt +++ b/build.sbt @@ -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:" +// 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:", + "-opt:l:inline" + ) + } else Nil +} + ThisBuild / scalaVersion := "2.12.18" libraryDependencies ++= Seq(