-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
171 lines (144 loc) · 4.38 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*
build.sbt adapted from https://github.com/pbassiner/sbt-multi-project-example/blob/master/build.sbt
*/
name := "bwhc-query-service"
ThisBuild / organization := "de.bwhc"
ThisBuild / scalaVersion := "2.13.8"
ThisBuild / version := "1.1.1"
//-----------------------------------------------------------------------------
// PROJECTS
//-----------------------------------------------------------------------------
lazy val global = project
.in(file("."))
.settings(
settings,
publish / skip := true
)
.aggregate(
api,
impl,
bwhc_connector,
bwhc_broker_connector,
fs_mtbfile_db,
tests
)
lazy val api = project
.settings(
name := "query-service-api",
settings,
libraryDependencies ++= Seq(
dependencies.bwhc_mtb_dtos,
dependencies.bwhc_mtb_views,
)
)
lazy val impl = project
.settings(
name := "query-service-impl",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
dependencies.icd_catalogs_impl,
dependencies.med_catalog_impl,
dependencies.hgnc_catalog_impl,
dependencies.bwhc_mtb_dto_gens % Test
)
)
.dependsOn(
api
)
lazy val bwhc_connector = project
.settings(
name := "bwhc-connector",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
dependencies.play_ws_client,
dependencies.play_ws_json,
dependencies.scala_xml
)
)
.dependsOn(
impl
)
lazy val bwhc_broker_connector = project
.settings(
name := "bwhc-broker-connector",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
dependencies.play_ws_client,
dependencies.play_ws_json,
dependencies.scala_xml
)
)
.dependsOn(
impl
)
lazy val fs_mtbfile_db = project
.settings(
name := "fs-mtbfile-db",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
dependencies.repo_utils,
dependencies.bwhc_mtb_dto_gens,
)
)
.dependsOn(
impl
)
lazy val tests = project
.settings(
name := "tests",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
dependencies.hgnc_catalog_impl,
dependencies.icd_catalogs_impl,
dependencies.med_catalog_impl
),
publish / skip := true
)
.dependsOn(
api,
impl % Test,
fs_mtbfile_db % Test
)
//-----------------------------------------------------------------------------
// DEPENDENCIES
//-----------------------------------------------------------------------------
lazy val dependencies =
new {
val scalatest = "org.scalatest" %% "scalatest" % "3.1.1" % Test
val slf4j = "org.slf4j" % "slf4j-api" % "1.7.32"
val play_ws_client = "com.typesafe.play" %% "play-ahc-ws-standalone" % "2.1.3"
val play_ws_json = "com.typesafe.play" %% "play-ws-standalone-json" % "2.1.3"
val scala_xml = "org.scala-lang.modules" %% "scala-xml" % "2.0.0"
val repo_utils = "de.ekut.tbi" %% "repository-utils" % "1.0-SNAPSHOT"
val bwhc_utils = "de.bwhc" %% "utils" % "1.1"
val bwhc_mtb_dtos = "de.bwhc" %% "mtb-dtos" % "1.0"
val bwhc_mtb_dto_gens = "de.bwhc" %% "mtb-dto-generators" % "1.0"
val bwhc_mtb_views = "de.bwhc" %% "mtb-views" % "1.0.1"
val hgnc_catalog_impl = "de.bwhc" %% "hgnc-impl" % "1.0" % Test
val icd_catalogs_impl = "de.bwhc" %% "icd-catalogs-impl" % "1.1" % Test
val med_catalog_impl = "de.bwhc" %% "medication-catalog-impl" % "1.1" % Test
}
//-----------------------------------------------------------------------------
// SETTINGS
//-----------------------------------------------------------------------------
lazy val settings = commonSettings
lazy val compilerOptions = Seq(
"-encoding", "utf8",
"-unchecked",
"-feature",
"-language:postfixOps",
"-Xfatal-warnings",
"-deprecation",
)
lazy val commonSettings = Seq(
scalacOptions ++= compilerOptions,
resolvers ++=
Seq("Local Maven Repository" at "file://" + Path.userHome.absolutePath + "/.m2/repository") ++
Resolver.sonatypeOssRepos("releases") ++
Resolver.sonatypeOssRepos("snapshots")
)