diff --git a/build.sbt b/build.sbt index a2cc0fc..7b6fcd9 100644 --- a/build.sbt +++ b/build.sbt @@ -59,6 +59,18 @@ scalacOptions ++= Seq( "-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 +} + scriptedLaunchOpts += "-Xmx1024m" scriptedLaunchOpts ++= Seq("-Dplugin.version=" + version.value) scriptedLaunchOpts += "-debug"