-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
39 lines (33 loc) · 1.16 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
lazy val VERSION = "0.5.0"
def commonSettings(_name: String) = Seq(
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.8" % Test,
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test
),
name := _name,
organization := "net.petitviolet",
version := VERSION,
scalaVersion := "2.13.3",
crossScalaVersions := Seq("2.11.12", "2.12.12", "2.13.3"),
scalafmtSbtCheck := true,
scalafmtConfig := Some(file(".scalafmt.conf")),
scalafmtOnCompile := true,
)
lazy val root = (project in file("."))
.settings(commonSettings("ulid4s-root"))
.aggregate(ulid4s)
lazy val ulid4s = (project in file("ulid4s"))
.settings(commonSettings("ulid4s"))
.settings(
publishConfiguration := publishConfiguration.value.withOverwrite(true),
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true),
testOptions in Test += Tests.Argument(
TestFrameworks.ScalaTest, "-u", {
val dir = System.getenv("CI_REPORTS")
if(dir == null) "target/reports" else dir
})
)
lazy val benchmark = (project in file("benchmark"))
.enablePlugins(JmhPlugin)
.settings(commonSettings("benchmark"))
.dependsOn(ulid4s)