forked from gitter-badger/scalaz-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (23 loc) · 910 Bytes
/
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
import Scalaz._
organization in ThisBuild := "org.scalaz"
version in ThisBuild := "0.1.0-SNAPSHOT"
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 root =
(project in file("."))
.settings(
stdSettings("logging")
)