-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
121 lines (100 loc) · 3.29 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
/*
build.sbt adapted from https://github.com/pbassiner/sbt-multi-project-example/blob/master/build.sbt
*/
name := "catalog-service"
ThisBuild / organization := "de.dnpm.dip"
ThisBuild / scalaVersion := "2.13.13"
ThisBuild / version := "1.0-SNAPSHOT"
//-----------------------------------------------------------------------------
// PROJECTS
//-----------------------------------------------------------------------------
lazy val global = project
.in(file("."))
.settings(
settings,
publish / skip := true
)
.aggregate(
api,
impl,
tests
)
lazy val api = project
.settings(
name := "catalog-service-api",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
dependencies.core
)
)
lazy val impl = project
.settings(
name := "catalog-service-impl",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
)
)
.dependsOn(api)
lazy val tests = project
.settings(
name := "tests",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest,
dependencies.atc_impl,
dependencies.atc_package,
dependencies.hgnc_impl,
dependencies.icd10gm_impl,
dependencies.icdo3_impl,
dependencies.icd_package,
dependencies.rd_model,
dependencies.ordo,
dependencies.omim
),
publish / skip := true
)
.dependsOn(
api,
impl % Test
)
//-----------------------------------------------------------------------------
// DEPENDENCIES
//-----------------------------------------------------------------------------
lazy val dependencies =
new {
val scalatest = "org.scalatest" %% "scalatest" % "3.1.1" % Test
val core = "de.dnpm.dip" %% "core" % "1.0-SNAPSHOT"
val atc_impl = "de.dnpm.dip" %% "atc-impl" % "1.0-SNAPSHOT" % Test
val atc_package = "de.dnpm.dip" %% "atc-catalogs-packaged" % "1.0-SNAPSHOT" % Test
val icd10gm_impl = "de.dnpm.dip" %% "icd10gm-impl" % "1.0-SNAPSHOT" % Test
val icdo3_impl = "de.dnpm.dip" %% "icdo3-impl" % "1.0-SNAPSHOT" % Test
val icd_package = "de.dnpm.dip" %% "icd-claml-packaged" % "1.0-SNAPSHOT" % Test
val hgnc_impl = "de.dnpm.dip" %% "hgnc-gene-set-impl" % "1.0-SNAPSHOT" % Test
val rd_model = "de.dnpm.dip" %% "rd-dto-model" % "1.0-SNAPSHOT" % Test
val ordo = "de.dnpm.dip" %% "orphanet-ordo" % "1.0-SNAPSHOT" % Test
val omim = "de.dnpm.dip" %% "omim-catalog" % "1.0-SNAPSHOT" % Test
}
//-----------------------------------------------------------------------------
// SETTINGS
//-----------------------------------------------------------------------------
lazy val settings = commonSettings
lazy val compilerOptions = Seq(
"-encoding", "utf8",
"-unchecked",
"-feature",
// "-language:existentials",
// "-language:higherKinds",
// "-language:implicitConversions",
"-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")
)