-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
executable file
·46 lines (36 loc) · 1.4 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
import sbtversionpolicy.withsbtrelease.ReleaseVersion.fromAggregatedAssessedCompatibilityWithLatestRelease
name := "fastly-api-client"
organization := "com.gu"
scalaVersion := "3.3.4"
crossScalaVersions := Seq(scalaVersion.value, "2.12.20", "2.13.15")
libraryDependencies ++= Seq(
"org.asynchttpclient" % "async-http-client" % "3.0.1" exclude("io.netty", "netty-codec"),
"io.netty" % "netty-codec" % "4.1.115.Final",
"joda-time" % "joda-time" % "2.13.0",
"org.joda" % "joda-convert" % "2.2.4",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0",
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"com.typesafe" % "config" % "1.4.3" % Test
)
scalacOptions ++= Seq("-deprecation", "-feature", "-language:postfixOps", "-release:11") ++
(CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) => Seq("-Xsource:3") // flags only needed in Scala 2
case _ => Seq.empty
})
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version)
buildInfoPackage := "com.gu.fastly.api"
import ReleaseTransformations._
licenses := Seq(License.Apache2)
releaseVersion := fromAggregatedAssessedCompatibilityWithLatestRelease().value
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
)