-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.sbt
55 lines (42 loc) · 1.3 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
import com.typesafe.config.ConfigFactory
enablePlugins(JavaServerAppPackaging)
enablePlugins(DockerPlugin)
name := """sdkman-hooks"""
Docker / packageName := "sdkman/sdkman-hooks"
dockerBaseImage := "openjdk:11"
Universal / javaOptions ++= Seq(
"-Dpidfile.path=/dev/null"
)
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.12.13"
routesGenerator := InjectedRoutesGenerator
resolvers ++= Seq(
Resolver.mavenCentral,
"jitpack" at "https://jitpack.io"
)
libraryDependencies ++= Seq(
guice,
ws,
"com.github.sdkman" % "sdkman-mongodb-persistence" % "2.3",
"org.scalatest" %% "scalatest" % "3.0.0" % Test,
"org.scalatestplus.play" %% "scalatestplus-play" % "5.0.0" % Test,
"io.cucumber" %% "cucumber-scala" % "4.7.1" % Test,
"io.cucumber" % "cucumber-junit" % "4.7.1" % Test,
"info.cukes" % "gherkin" % "2.7.3" % Test,
"org.scalaj" %% "scalaj-http" % "2.3.0" % Test,
"com.github.tomakehurst" % "wiremock" % "2.2.2" % Test
)
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(releaseStepTask(publish in Docker)),
setNextVersion,
commitNextVersion,
pushChanges
)