-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
90 lines (74 loc) · 2.49 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
81
82
83
84
85
86
87
88
89
90
import ReleaseTransformations._
name := "json-home-client"
description := "Scala client to consume JSON home documents"
organization := "de.kaufhof"
version := "3.0.3"
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
homepage := Some(url("https://github.com/Galeria-Kaufhof/jsonhomeclient"))
scalaVersion := "2.12.4"
crossScalaVersions := Seq("2.11.12", "2.12.4")
scalacOptions ++= Seq("-language:reflectiveCalls", "-feature", "-deprecation")
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"org.mockito" % "mockito-core" % "2.13.0" % "test",
"de.heikoseeberger" %% "akka-http-play-json" % "1.19.0",
"com.typesafe.akka" %% "akka-http" % "10.0.11",
"com.typesafe.play" %% "play-json" % "2.6.8",
"ch.qos.logback" % "logback-core" % "1.2.3",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.slf4j" % "slf4j-api" % "1.7.25",
"com.damnhandy" % "handy-uri-templates" % "2.1.6"
)
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// Publish settings
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")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<scm>
<url>[email protected]:Galeria-Kaufhof/jsonhomeclient.git</url>
<connection>scm:git:[email protected]:Galeria-Kaufhof/jsonhomeclient.git</connection>
</scm>
<developers>
<developer>
<id>martin.grotzke</id>
<name>Martin Grotzke</name>
<url>https://github.com/magro</url>
</developer>
<developer>
<id>manuel.kiessling</id>
<name>Manuel Kiessling</name>
<url>https://github.com/manuelkiessling</url>
</developer>
<developer>
<id>fabian.koehler</id>
<name>Fabian Koehler</name>
<url>https://github.com/fkoehler</url>
</developer>
<developer>
<id>markus.klink</id>
<name>Markus Klink</name>
<url>https://github.com/justjoheinz</url>
</developer>
</developers>)
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)