-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
78 lines (68 loc) · 2.16 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
import Dependencies._
lazy val commonSettings = Seq(
organization := "crossroad0201.dddonscala",
version := "0.1.0-SNAPSHOT",
scalaVersion := "2.12.3",
scalacOptions := Seq(
"-deprecation",
"-feature"
),
scalafmtOnCompile in ThisBuild := true,
scalafmtTestOnCompile in ThisBuild := true,
libraryDependencies ++= CommonDepends
)
lazy val dddOnScala = (project in file("."))
.aggregate(domain, application, infrastructure, rdb, kafka, elasticSearch, sampleInterface)
.settings(
commonSettings,
name := "dddonscala",
publishArtifact := false
)
lazy val domain = (project in file("modules/domain")).settings(
commonSettings,
name := "dddonscala-domain"
)
lazy val query = (project in file("modules/query")).settings(
commonSettings,
name := "dddonscala-query"
)
lazy val application = (project in file("modules/application"))
.dependsOn(domain)
.settings(
commonSettings,
name := "dddonscala-application"
)
lazy val infrastructure = (project in file("modules/adapter/infrastructure"))
.dependsOn(application, domain)
.settings(
commonSettings,
name := "dddonscala-infrastructure"
)
lazy val rdb = (project in file("modules/adapter/infrastructure/rdb"))
.dependsOn(infrastructure, application, domain)
.settings(
commonSettings,
name := "dddonscala-rdb",
libraryDependencies ++= InfrastructureDepends,
// Flyway でデータベースをマイグレーションするための接続情報
flywayUrl := "jdbc:h2:file:./.db/h2/dddonscala",
flywayUser := "sa"
)
lazy val kafka = (project in file("modules/adapter/infrastructure/kafka"))
.dependsOn(infrastructure, application, domain)
.settings(
commonSettings,
name := "dddonscala-kafka"
)
lazy val elasticSearch = (project in file("modules/adapter/infrastructure/elasticSearch"))
.dependsOn(infrastructure, query)
.settings(
commonSettings,
name := "dddonscala-elasticsearch"
)
lazy val sampleInterface = (project in file("modules/adapter/interface/sample"))
.dependsOn(rdb, kafka, elasticSearch, infrastructure, application, query, domain)
.settings(
commonSettings,
name := "dddonscala-sampleinterface"
)