-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
57 lines (48 loc) · 1.59 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
name := "IterablePlayUtils"
organization := "com.iterable"
homepage := Some(url("https://github.com/Iterable/iterable-play-utils"))
scmInfo := Some(
ScmInfo(url("https://github.com/Iterable/iterable-play-utils"), "scm:[email protected]:Iterable/iterable-play-utils.git")
)
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
developers := List(
Developer(id = "Iterable", name = "Iterable", email = "[email protected]", url = url("https://iterable.com"))
)
scalaVersion := "2.13.14"
crossScalaVersions := Seq(scalaVersion.value)
val PlayVersion = "3.0.1"
libraryDependencies ++= Seq(
// Play! framework
"org.playframework" %% "play" % PlayVersion,
"org.playframework" %% "play-joda-forms" % PlayVersion,
// dependencies for tests
"org.scalatest" %% "scalatest" % "3.2.18" % Test
)
parallelExecution in Test := 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"))
}
publishArtifact in Test := false
pomIncludeRepository := (_ => false)
publishMavenStyle := true
publishTo := sonatypePublishToBundle.value
import ReleaseTransformations._
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)