-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
53 lines (46 loc) · 1.72 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
val mainScala = "2.12.10"
val allScala = Seq("2.11.12", mainScala)
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://github.com/zio/zio-analytics")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
useCoursier := false,
scalaVersion := mainScala,
crossScalaVersions := allScala,
parallelExecution in Test := false,
fork in Test := true,
fork in run := true,
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
scmInfo := Some(
ScmInfo(url("https://github.com/zio/zio-analytics/"), "scm:git:git@github.com:zio/zio-analytics.git")
),
developers := List(
Developer(
"iravid",
"Itamar Ravid",
"iravid@iravid.com",
url("https://github.com/iravid")
)
)
)
)
ThisBuild / publishTo := sonatypePublishToBundle.value
name := "zio-analytics"
scalafmtOnCompile := true
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion, isSnapshot)
buildInfoPackage := "zio.analytics"
buildInfoObject := "BuildInfo"
libraryDependencies ++= Seq(
"dev.zio" %% "zio-streams" % "1.0.0-RC16",
"dev.zio" %% "zio-test" % "1.0.0-RC16" % "test",
"dev.zio" %% "zio-test-sbt" % "1.0.0-RC16" % "test",
"com.lihaoyi" %% "pprint" % "0.5.6" % "test",
compilerPlugin("org.spire-math" %% "kind-projector" % "0.9.10")
)
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")