-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
59 lines (48 loc) · 1.55 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/// publishing
name := "emoji"
organization := "com.lightbend"
homepage := Some(url("https://github.com/lightbend/lightbend-emoji"))
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
scmInfo := Some(ScmInfo(
url("https://github.com/lightbend/lightbend-emoji"),
"scm:git:[email protected]:lightbend/lightbend-emoji.git"
))
developers := List(
Developer(
id = "Lightbend",
name = "Lightbend, Inc.",
email = "",
url = url("https://www.lightbend.com")
)
)
ThisBuild / dynverVTagPrefix := false
ThisBuild / versionScheme := Some("early-semver")
/// build
crossScalaVersions := Seq("2.13.15", "2.12.20", "3.3.4")
scalaVersion := crossScalaVersions.value.head
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest-wordspec" % "3.2.19" % Test,
"org.scalatest" %% "scalatest-shouldmatchers" % "3.2.19" % Test,
"org.scalameta" %% "munit" % "1.0.2" % Test,
)
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xfatal-warnings") ++ (
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) => Seq("-Xlint")
case _ => Seq.empty
}
)
Compile / console / scalacOptions ~= (_ filterNot Set(
"-Xlint",
"-Xfatal-warnings"
))
Test / scalacOptions ~= (_ filterNot Set(
"-Xfatal-warnings"
))
console / initialCommands := {
"""import com.lightbend.emoji._
|import com.lightbend.emoji.Emoji.Implicits._
|import com.lightbend.emoji.ShortCodes.Implicits._
|""".stripMargin
}
/// MiMa
mimaPreviousArtifacts := Set(organization.value %% name.value % "1.3.0")