forked from sdkman/vendor-release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (57 loc) · 1.96 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
name := "vendor-release"
val akkaHttpVersion = "10.2.4"
val scalaTestVersion = "3.1.0"
val scalajHttpVersion = "2.4.2"
val cucumberVersion = "2.0.1"
scalaVersion := "2.12.10"
val commonSettings = Seq(
organization := "io.sdkman",
scalaVersion := "2.12.10"
)
lazy val dockerSettings = Seq(
dockerBaseImage := "openjdk:11",
maintainer in Docker := "SDKMAN! <[email protected]>",
dockerUpdateLatest := true,
packageName := "sdkman/vendor-release"
)
parallelExecution in Test := false
resolvers ++= Seq(
Resolver.mavenCentral,
"jitpack" at "https://jitpack.io"
)
val testDependencies = Seq(
"org.scalatest" %% "scalatest" % scalaTestVersion % Test,
"io.cucumber" %% "cucumber-scala" % cucumberVersion % Test,
"io.cucumber" % "cucumber-junit" % cucumberVersion % Test,
"com.novocode" % "junit-interface" % "0.11" % Test,
"org.scalaj" %% "scalaj-http" % scalajHttpVersion % Test,
"com.github.tomakehurst" % "wiremock" % "2.2.2" % Test
)
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-stream" % "2.6.1",
"com.typesafe.akka" %% "akka-slf4j" % "2.6.1",
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0",
"ch.qos.logback" % "logback-classic" % "1.1.8",
"io.spray" %% "spray-json" % "1.3.2",
"com.github.sdkman" % "sdkman-mongodb-persistence" % "2.1",
"com.github.sdkman" % "sdkman-url-validator" % "0.2.4"
) ++ testDependencies
lazy val `vendor-release` = (project in file("."))
.enablePlugins(DockerPlugin, JavaServerAppPackaging)
.settings(commonSettings ++ dockerSettings: _*)
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(releaseStepTask(publish in Docker)),
setNextVersion,
commitNextVersion,
pushChanges
)