-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
71 lines (47 loc) · 2.06 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
71
import play.PlayImport.PlayKeys.playRunHooks
name := "jetchat"
version := System.getProperty("build.number", "0.1-SNAPSHOT")
organization := "com.jetbrains"
scalaVersion := "2.11.7"
resolvers += "Akka Snapshot Repository" at "http://repo.akka.io/snapshots/"
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-slick" % "1.1.1",
"com.typesafe.play" %% "play-slick-evolutions" % "1.1.1",
specs2 % Test,
evolutions,
ws,
"org.reflections" % "reflections" % "0.9.10",
"com.google.inject.extensions" % "guice-multibindings" % "4.0",
"mysql" % "mysql-connector-java" % "5.1.36",
"com.h2database" % "h2" % "1.4.189",
"com.typesafe.akka" %% "akka-cluster" % "2.4-SNAPSHOT",
"com.typesafe.akka" %% "akka-cluster-tools" % "2.4-SNAPSHOT",
"com.typesafe.akka" %% "akka-distributed-data-experimental" % "2.4-SNAPSHOT",
"org.mousio" % "etcd4j" % "2.7.0",
"com.fasterxml.jackson.jaxrs" % "jackson-jaxrs-json-provider" % "2.5.4",
"org.apache.commons" % "commons-lang3" % "3.3.2",
"com.typesafe.play" %% "play-mailer" % "3.0.0",
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
"org.scala-lang" % "scala-reflect" % scalaVersion.value
)
unmanagedBase <<= baseDirectory { base => base / "lib" }
fork in Test := false
javaOptions in Test += "-Dconfig.file=conf/application.test.conf"
lazy val root = (project in file("."))
.enablePlugins(PlayScala, DockerPlugin)
playRunHooks <+= baseDirectory.map(Webpack.apply)
lazy val webpack = taskKey[Unit]("Running webpack when packaging the application...")
def runWebpack(file: File) = {
Process("npm install", file) !
}
webpack := {
if (runWebpack(baseDirectory.value) != 0) throw new Exception("Something goes wrong when running webpack")
}
dist <<= dist dependsOn webpack
stage <<= stage dependsOn webpack
routesGenerator := InjectedRoutesGenerator
dockerBaseImage := "java:8u45"
maintainer := "Andrey Cheptsov <andrey.cheptsov@jetbrains.com>"
dockerExposedPorts in Docker := Seq(8080)