-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
82 lines (75 loc) · 2.39 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
import ReleaseTransformations._
name := "jira4s"
organization in ThisBuild := "com.github.allantl"
homepage in ThisBuild := Some(url("https://github.com/allantl/jira4s"))
licenses in ThisBuild := List("Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0"))
val scala212Version = "2.12.8"
crossScalaVersions := Seq(scala212Version)
val CirceVersion = "0.11.1"
val AtlassianJwtVersion = "0.1.7"
val Specs2Version = "4.5.1"
val SttpVersion = "1.6.2"
lazy val publishSettings = Seq(
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ =>
false
},
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")
},
autoAPIMappings := true,
scmInfo := Some(
ScmInfo(
url("https://github.com/allantl/jira4s"),
"scm:git:git@github.com:allantl/jira4s.git"
)
),
developers := List(
Developer(
"allantl",
"Allan Timothy Leong",
"allan.timothy.leong@gmail.com",
url("https://github.com/allantl")
)
)
)
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
lazy val root = (project in file("."))
.configs(IntegrationTest)
.settings(
Defaults.itSettings,
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % CirceVersion,
"io.circe" %% "circe-generic" % CirceVersion,
"io.circe" %% "circe-parser" % CirceVersion,
"io.toolsplus" %% "atlassian-jwt-generators" % AtlassianJwtVersion,
"io.toolsplus" %% "atlassian-jwt-core" % AtlassianJwtVersion,
"com.softwaremill.sttp" %% "core" % SttpVersion,
"com.softwaremill.sttp" %% "circe" % SttpVersion,
"com.typesafe" % "config" % "1.3.2"
),
libraryDependencies ++= Seq(
"org.specs2" %% "specs2-core" % Specs2Version % "it,test",
"org.specs2" %% "specs2-scalacheck" % Specs2Version % "it,test",
)
)
.settings(parallelExecution in IntegrationTest := false)
.settings(publishSettings)