This repository has been archived by the owner on Feb 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
56 lines (46 loc) · 1.57 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
import Scalaz._
lazy val commonSettings = Seq(
organization := "org.scalaz",
version := "0.1.0-SNAPSHOT",
resolvers +=
"Sonatype OSS Snapshots".at("https://oss.sonatype.org/content/repositories/snapshots")
)
val dependencies = Seq(
"org.scalaz" %% "scalaz-core" % "7.2.26",
"org.scalaz" %% "scalaz-zio" % "0.1-SNAPSHOT"
)
val testDependencies = Seq(
"org.specs2" %% "specs2-core" % "4.2.0" % Test,
"org.specs2" %% "specs2-scalacheck" % "4.2.0" % Test,
"org.specs2" %% "specs2-matcher-extra" % "4.2.0" % Test
)
publishTo in ThisBuild := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots".at(nexus + "content/repositories/snapshots"))
else
Some("releases".at(nexus + "service/local/staging/deploy/maven2"))
}
dynverSonatypeSnapshots in ThisBuild := true
lazy val sonataCredentials = for {
username <- sys.env.get("SONATYPE_USERNAME")
password <- sys.env.get("SONATYPE_PASSWORD")
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)
credentials in ThisBuild ++= sonataCredentials.toSeq
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
lazy val core =
(project in file("core"))
.settings(
commonSettings ++
stdSettings("reactive-core"),
libraryDependencies ++= (dependencies ++ testDependencies)
)
lazy val examples = (project in file("examples"))
.settings(
commonSettings ++
stdSettings("reactive-examples")
)
.dependsOn(
core
)