forked from KohlbacherLab/bwHC-Data-Validation-Service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
157 lines (132 loc) · 4.18 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
/*
build.sbt adapted from https://github.com/pbassiner/sbt-multi-project-example/blob/master/build.sbt
*/
name := "bwhc-data-entry-service"
ThisBuild / organization := "de.bwhc"
ThisBuild / scalaVersion := "2.13.8"
ThisBuild / version := "1.1-SNAPSHOT"
//-----------------------------------------------------------------------------
// PROJECTS
//-----------------------------------------------------------------------------
lazy val global = project
.in(file("."))
.settings(
settings,
publish / skip := true
)
.aggregate(
api,
// generators,
impl,
deps,
tests
)
lazy val api = project
.settings(
name := "data-entry-service-api",
settings,
libraryDependencies ++= Seq(
// dependencies.bwhc_utils,
// dependencies.hgnc_catalog_api,
// dependencies.icd_catalogs_api,
// dependencies.med_catalog_api
dependencies.query_api
)
)
/*
lazy val generators = project
.settings(
name := "mtb-dto-generators",
settings,
libraryDependencies ++= Seq(
dependencies.generators
)
)
.dependsOn(
api
)
*/
lazy val impl = project
.settings(
name := "data-entry-service-impl",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
dependencies.mtb_dto_gens,
dependencies.hgnc_catalog_impl,
dependencies.icd_catalogs_impl,
dependencies.med_catalog_impl
)
)
.dependsOn(
api,
// generators % Test,
)
lazy val deps = project
.in(file("dependencies"))
.settings(
name := "data-entry-service-dependencies",
settings,
libraryDependencies ++= Seq(
dependencies.repo_utils,
)
)
.dependsOn(impl)
lazy val tests = project
.settings(
name := "tests",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
dependencies.slf4j,
dependencies.mtb_dto_gens,
dependencies.hgnc_catalog_impl,
dependencies.icd_catalogs_impl,
dependencies.med_catalog_impl
),
publish / skip := true
)
.dependsOn(
api,
// generators % Test,
impl % Test,
deps % 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_json = "com.typesafe.play" %% "play-json" % "2.8.1"
val repo_utils = "de.ekut.tbi" %% "repository-utils" % "1.0-SNAPSHOT"
// val generators = "de.ekut.tbi" %% "generators" % "0.1-SNAPSHOT"
// val bwhc_utils = "de.bwhc" %% "utils" % "1.1"
// val hgnc_catalog_api = "de.bwhc" %% "hgnc-api" % "1.0"
// val icd_catalogs_api = "de.bwhc" %% "icd-catalogs-api" % "1.0"
// val med_catalog_api = "de.bwhc" %% "medication-catalog-api" % "1.0"
val mtb_dto_gens = "de.bwhc" %% "mtb-dto-generators" % "1.0-SNAPSHOT" % Test
val query_api = "de.bwhc" %% "query-service-api" % "1.1-SNAPSHOT"
val hgnc_catalog_impl = "de.bwhc" %% "hgnc-impl" % "1.0" % Test
val icd_catalogs_impl = "de.bwhc" %% "icd-catalogs-impl" % "1.0" % Test
val med_catalog_impl = "de.bwhc" %% "medication-catalog-impl" % "1.0" % 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")
)