-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
105 lines (83 loc) · 2.27 KB
/
Copy pathbuild.sbt
File metadata and controls
105 lines (83 loc) · 2.27 KB
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
/*
build.sbt adapted from https://github.com/pbassiner/sbt-multi-project-example/blob/master/build.sbt
*/
name := "bwhc-medication-catalog"
ThisBuild / organization := "de.bwhc"
ThisBuild / version := "1.1-SNAPSHOT"
lazy val scala213 = "2.13.8"
lazy val supportedScalaVersions =
List(
scala213
)
ThisBuild / scalaVersion := scala213
//-----------------------------------------------------------------------------
// PROJECTS
//-----------------------------------------------------------------------------
lazy val global = project
.in(file("."))
.settings(
settings,
crossScalaVersions := Nil,
publish / skip := true
)
.aggregate(
api,
impl,
tests
)
lazy val api = project
.settings(
name := "medication-catalog-api",
settings,
libraryDependencies ++= Seq(
dependencies.play_json
),
crossScalaVersions := supportedScalaVersions
)
lazy val impl = project
.settings(
name := "medication-catalog-impl",
settings,
crossScalaVersions := supportedScalaVersions
)
.dependsOn(api)
lazy val tests = project
.settings(
name := "tests",
settings,
libraryDependencies ++= Seq(
dependencies.scalatest
),
crossScalaVersions := supportedScalaVersions,
publish / skip := true
)
.dependsOn(
api,
impl % Test
)
//-----------------------------------------------------------------------------
// DEPENDENCIES
//-----------------------------------------------------------------------------
lazy val dependencies =
new {
val scalatest = "org.scalatest" %% "scalatest" % "3.0.8" % Test
val play_json = "com.typesafe.play" %% "play-json" % "2.8.1"
}
//-----------------------------------------------------------------------------
// SETTINGS
//-----------------------------------------------------------------------------
lazy val settings = commonSettings
lazy val compilerOptions = Seq(
"-unchecked",
"-feature",
"-Xfatal-warnings",
"-deprecation",
"-encoding", "utf8"
)
lazy val commonSettings = Seq(
scalacOptions ++= compilerOptions,
resolvers ++=
Seq("Local Maven Repository" at "file://" + Path.userHome.absolutePath + "/.m2/repository") ++
Resolver.sonatypeOssRepos("releases") ++
Resolver.sonatypeOssRepos("snapshots")
)