We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 763fe5e commit efcf24cCopy full SHA for efcf24c
1 file changed
build.sbt
@@ -11,6 +11,8 @@ lazy val graalvmV = "24.2.2"
11
12
addCommandAlias("fixAll", "scalafixAll; scalafmtAll")
13
14
+lazy val wErrorIfCI = if (sys.env.contains("CI")) Seq("-Werror") else Seq()
15
+
16
def isDevBuild: Boolean =
17
sys.env.get("DEV_BUILD").exists(s => s != "0" && s != "false")
18
@@ -51,12 +53,11 @@ lazy val root = (project in file("."))
51
53
),
52
54
scalacOptions ++= Seq(
55
"-Wunused:imports",
- "-Werror",
56
"-feature",
57
"-deprecation",
58
"-unchecked",
59
"-explain",
- ),
60
+ ) ++ wErrorIfCI,
61
buildInfoKeys := Seq[BuildInfoKey](
62
version,
63
scalaVersion,
0 commit comments