forked from scala-jsonapi/scala-jsonapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
80 lines (63 loc) · 2.4 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
organization := "org.zalando"
name := "scala-jsonapi"
scalaVersion := "2.11.8"
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation")
resolvers ++= Seq(
"spray" at "http://repo.spray.io/",
"Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/"
)
libraryDependencies ++= {
val circeVersion = "0.6.0"
val akkaVersion = "2.4.16"
val akkaHttpVersion = "10.0.1"
val playVersion = "2.5.10"
Seq(
"io.spray" %% "spray-json" % "1.3.3" % "provided",
"io.spray" %% "spray-httpx" % "1.3.4" % "provided",
"com.typesafe.akka" %% "akka-actor" % akkaVersion % "provided",
"com.typesafe.akka" %% "akka-http-core" % akkaHttpVersion % "provided",
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion % "provided",
"com.typesafe.play" %% "play-json" % playVersion % "provided",
"io.circe" %% "circe-core" % circeVersion % "provided",
"io.circe" %% "circe-generic" % circeVersion % "provided",
"io.circe" %% "circe-parser" % circeVersion % "provided",
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % "test"
)
}
lazy val root = (project in file("."))
.enablePlugins(ScoverageSbtPlugin)
scalafmtConfig in ThisBuild := Some(file(".scalafmt"))
coverageMinimum := 80
coverageFailOnMinimum := true
publishMavenStyle := true
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")
}
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
sonatypeProfileName := "org.zalando"
pomExtra := (
<url>https://github.com/zalando/scala-jsonapi</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:zalando/scala-jsonapi.git</url>
<connection>scm:git:[email protected]:zalando/scala-jsonapi.git</connection>
</scm>
<developers>
<developer>
<id>zmeda</id>
<name>Boris Malensek</name>
<url>https://github.com/zmeda</url>
</developer>
</developers>)