-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
62 lines (50 loc) · 1.87 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
name := "upload-service"
organization in ThisBuild := "de.guysoft"
version := "1.0"
scalaVersion in ThisBuild := "2.11.8"
lazy val root = (project in file("."))
.settings(commonSettings: _*)
.aggregate(uploadServiceJavaAPI, uploadServiceJavaImpl, uploadServiceScalaAPI, uploadServiceScalaImpl)
lazy val uploadServiceJavaAPI = (project in file("upload-service-java-api"))
.settings(commonSettings: _*)
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies ++= Seq(lagomJavadslApi, lagomJavadslImmutables, lagomLogback)
)
lazy val uploadServiceJavaImpl = (project in file("upload-service-java-impl"))
.enablePlugins(LagomJava)
.settings(commonSettings: _*)
.settings(lagomForkedTestSettings: _*)
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies ++= Seq(
lagomJavadslPersistenceCassandra,
lagomJavadslImmutables,
lagomJavadslTestKit
)
)
.dependsOn(uploadServiceJavaAPI)
lazy val uploadServiceScalaAPI = (project in file("upload-service-scala-api"))
.settings(commonSettings: _*)
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies ++= Seq(lagomScaladslApi, lagomLogback)
)
lazy val uploadServiceScalaImpl = (project in file("upload-service-scala-impl"))
.enablePlugins(LagomScala)
.settings(commonSettings: _*)
.settings(lagomForkedTestSettings: _*)
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies ++= Seq(
lagomScaladslPersistenceCassandra,
lagomScaladslTestKit,
"com.softwaremill.macwire" %% "macros" % "2.2.5" % "provided"
)
) .dependsOn(uploadServiceScalaAPI)
def commonSettings: Seq[Setting[_]] = Seq(
javacOptions in compile ++=
Seq("-encoding", "UTF-8", "-source", "1.8", "-target", "1.8", "-Xlint:unchecked", "-Xlint:deprecation", "-parameters")
)
lagomServiceGatewayImpl in ThisBuild := "akka-http"
lagomCassandraCleanOnStart in ThisBuild := true