-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
91 lines (73 loc) · 2.68 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
ThisBuild / organization := "app.softnetwork"
name := "payment"
ThisBuild / version := "0.7.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.12.18"
ThisBuild / scalacOptions ++= Seq("-deprecation", "-feature", "-target:jvm-1.8", "-Ypartial-unification")
ThisBuild / javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")
ThisBuild / resolvers ++= Seq(
"Softnetwork Server" at "https://softnetwork.jfrog.io/artifactory/releases/",
"Maven Central Server" at "https://repo1.maven.org/maven2",
"Typesafe Server" at "https://repo.typesafe.com/typesafe/releases"
)
ThisBuild / versionScheme := Some("early-semver")
val scalatest = Seq(
"org.scalatest" %% "scalatest" % Versions.scalatest % Test
)
ThisBuild / libraryDependencies ++= Seq(
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.1"
) ++ scalatest
Test / parallelExecution := false
lazy val client = project.in(file("client"))
.configs(IntegrationTest)
.settings(Defaults.itSettings, app.softnetwork.Info.infoSettings)
.enablePlugins(BuildInfoPlugin, AkkaGrpcPlugin, JavaAppPackaging, UniversalDeployPlugin)
lazy val common = project.in(file("common"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.enablePlugins(AkkaGrpcPlugin)
.dependsOn(
client % "compile->compile;test->test;it->it"
)
lazy val core = project.in(file("core"))
.configs(IntegrationTest)
.settings(Defaults.itSettings, app.softnetwork.Info.infoSettings)
.enablePlugins(BuildInfoPlugin, AkkaGrpcPlugin)
.dependsOn(
common % "compile->compile;test->test;it->it"
)
lazy val mangopay = project.in(file("mangopay"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.dependsOn(
core % "compile->compile;test->test;it->it"
)
lazy val stripe = project.in(file("stripe"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.dependsOn(
core % "compile->compile;test->test;it->it"
)
lazy val api = project.in(file("api"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.enablePlugins(DockerComposePlugin, DockerPlugin, JavaAppPackaging)
.dependsOn(
mangopay % "compile->compile;test->test;it->it"
)
.dependsOn(
stripe % "compile->compile;test->test;it->it"
)
lazy val testkit = project.in(file("testkit"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.dependsOn(
mangopay % "compile->compile;test->test;it->it"
)
.dependsOn(
stripe % "compile->compile;test->test;it->it"
)
lazy val root = project.in(file("."))
.aggregate(client, common, core, mangopay, stripe, testkit, api)
.configs(IntegrationTest)
.settings(Defaults.itSettings)