-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
70 lines (54 loc) · 2.8 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
68
69
70
enablePlugins(JavaAppPackaging, UniversalPlugin, PlayScala, SbtWeb, BuildInfoPlugin)
name := """Hydra"""
organization := "com.rmn.api"
scalaVersion := "2.11.12"
resolvers ++= Seq("snapshots", "releases").map(Resolver.sonatypeRepo)
resolvers += "Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
libraryDependencies ++= Seq(
filters,
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.6.3",
"com.github.mauricio" %% "postgresql-async" % "0.2.21",
"com.github.tminglei" %% "slick-pg_joda-time" % "0.14.4",
"com.github.tminglei" %% "slick-pg_play-json" % "0.14.4",
"com.github.tminglei" %% "slick-pg" % "0.14.4",
"com.rmn" %% "play-jsonapi" % "0.1",
"com.typesafe.play" %% "play-slick-evolutions" % "2.0.2",
"com.typesafe.play" %% "play-slick" % "2.0.2",
"com.typesafe.scala-logging" %% "scala-logging" % "3.1.0",
"com.typesafe.slick" %% "slick-codegen" % "3.1.0",
"io.dropwizard.metrics" % "metrics-json" % "3.1.2",
"io.dropwizard.metrics" % "metrics-jvm" % "3.1.2",
"nl.grons" %% "metrics-scala" % "3.5.4_a2.3",
"org.postgresql" % "postgresql" % "9.4.1209",
/* We already had a dependency on org.postgresql.postgresql, via slick-pg.
But slick-pg 0.14.4 pulls postgresql 9.4-1201-jdbc41, which causes the following issue:
https://github.com/tminglei/slick-pg/issues/220#issuecomment-162125808 */
"io.sentry" % "sentry-logback" % "1.6.4" % Optional,
"com.miguno.akka" % "akka-mock-scheduler_2.11" % "0.4.0" % Test,
"com.typesafe.akka" %% "akka-testkit" % "2.4.14" % Test,
"com.typesafe.akka" %% "akka-stream-testkit" % "2.4.14" % Test,
"org.scalatestplus.play" %% "scalatestplus-play" % "1.5.0" % Test,
specs2 % Test
)
// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
fork in run := true
buildInfoPackage := "hydra.build"
buildInfoUsePackageAsPath := true
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoOptions ++= Seq(BuildInfoOption.ToMap, BuildInfoOption.ToJson, BuildInfoOption.BuildTime)
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
// Release
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
runTest, // : ReleaseStep
setReleaseVersion, // : ReleaseStep
commitReleaseVersion, // : ReleaseStep, performs the initial git checks
tagRelease, // : ReleaseStep
setNextVersion, // : ReleaseStep
commitNextVersion // : ReleaseStep
)