-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
57 lines (44 loc) · 1.87 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
val skuber = "io.github.doriordan" %% "skuber" % "1.7.1-RC2"
val jacksonYaml = "com.fasterxml.jackson.dataformat" % "jackson-dataformat-yaml" % "2.9.1"
val snakeYaml = "org.yaml" % "snakeyaml" % "1.18"
val cats = "org.typelevel" %% "cats-core" % "1.0.0-MF"
val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.12.4"
val specs2 = "org.specs2" %% "specs2-core" % "3.7"
// These versions are required by skuber
scalacOptions += "-target:jvm-1.8"
scalaVersion := "2.11.8"
scalacOptions in Test ++= Seq("-Yrangepos")
version in ThisBuild := "0.1"
// NOTE: not the long-term planned profile name or organization
sonatypeProfileName := "io.github.doriordan"
publishMavenStyle in ThisBuild := true
licenses in ThisBuild := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage in ThisBuild := Some(url("https://github.com/doriordan"))
scmInfo in ThisBuild := Some(
ScmInfo(
url("https://github.com/doriordan/skuber-util"),
"scm:[email protected]:doriordan/skuber-util.git"
)
)
developers in ThisBuild := List(Developer(id="doriordan", name="David ORiordan", email="[email protected]", url=url("https://github.com/doriordan")))
lazy val commonSettings = Seq(
organization := "io.github.doriordan",
scalaVersion := "2.11.8",
publishTo := {
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")
},
pomIncludeRepository := { _ => false }
)
lazy val skuberUtilSettings = Seq(
name := "skuber-util",
libraryDependencies ++= Seq(skuber,jacksonYaml, snakeYaml, cats, scalaCheck % Test,specs2 % Test).
map(_.exclude("commons-logging","commons-logging"))
)
publishArtifact in root := false
lazy val root = (project in file("."))
.settings(commonSettings: _*)
.settings(skuberUtilSettings: _*)