forked from scala-jsonapi/scala-jsonapi
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
69 lines (53 loc) · 1.69 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
organization := "io.kontainers"
name := "scala-jsonapi"
scalaVersion := "2.13.6"
crossScalaVersions := Seq(scalaVersion.value, "2.12.12")
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation")
libraryDependencies ++= {
Seq(
"io.spray" %% "spray-json" % "1.3.6" % "provided",
"com.typesafe.play" %% "play-json" % "2.9.2" % "provided",
"org.scalatest" %% "scalatest" % "3.2.9" % Test
)
}
lazy val root = (project in file("."))
.enablePlugins(ScoverageSbtPlugin)
ThisBuild / scalafmtConfig := 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")
}
Test / publishArtifact := false
pomIncludeRepository := { _ => false }
releasePublishArtifactsAction := PgpKeys.publishSigned.value
pomExtra := (
<url>https://github.com/kontainers/scala-jsonapi</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:kontainers/scala-jsonapi.git</url>
<connection>scm:git:git@github.com:kontainers/scala-jsonapi.git</connection>
</scm>
<developers>
<developer>
<id>zmeda</id>
<name>Boris Malensek</name>
<url>https://github.com/zmeda</url>
</developer>
<developer>
<id>pjfanning</id>
<name>PJ Fanning</name>
<url>https://github.com/pjfanning</url>
</developer>
</developers>)