We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0383bd commit 3e3f916Copy full SHA for 3e3f916
1 file changed
build.sbt
@@ -23,6 +23,25 @@ scriptedLaunchOpts ++= Seq(
23
"-Dplugin.version=" + version.value
24
)
25
26
+scalacOptions ++= Seq(
27
+ "-unchecked",
28
+ "-deprecation",
29
+ "-Xlint",
30
+ "-encoding",
31
+ "UTF-8"
32
+)
33
+
34
+scalacOptions ++= {
35
+ if (insideCI.value) {
36
+ val log = sLog.value
37
+ log.info("Running in CI, enabling Scala2 optimizer")
38
+ Seq(
39
+ "-opt-inline-from:<sources>",
40
+ "-opt:l:inline"
41
+ )
42
+ } else Nil
43
+}
44
45
// So that publishLocal doesn't continuously create new versions
46
def versionFmt(out: sbtdynver.GitDescribeOutput): String = {
47
val snapshotSuffix =
0 commit comments