-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
34 lines (27 loc) · 970 Bytes
/
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
import sbtversionpolicy.withsbtrelease.ReleaseVersion
name := "commercial-shared"
organization := "com.gu"
homepage := Some(url("https://github.com/guardian/commercial-shared"))
licenses := Seq(License.Apache2)
scalaVersion := "2.13.12"
scalacOptions := Seq("-release:11")
crossScalaVersions := Seq(scalaVersion.value, "2.12.18")
libraryDependencies ++= Seq(
"com.gu" %% "content-api-models-scala" % "19.0.0" % Provided,
"org.scalatest" %% "scalatest" % "3.0.9" % Test,
"com.typesafe.play" %% "play-json" % "2.10.4" % Test
)
import ReleaseTransformations._
releaseCrossBuild := true // true if you cross-build the project for multiple Scala versions
releaseVersion := ReleaseVersion.fromAggregatedAssessedCompatibilityWithLatestRelease().value
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion
)