-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
77 lines (71 loc) · 1.89 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
import Dependencies._
ThisBuild / scalaVersion := "2.13.4"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "com.example"
ThisBuild / organizationName := "example"
lazy val mainCompilerOptions = Seq(
"-deprecation", // warn about use of deprecated APIs
"-feature", // warn about misused language features
"-unchecked", // warn about unchecked type parameters
"-Xlint:_,-byname-implicit", // enable handy linter warnings without byname implicit
"-Werror", // "-Xfatal-warnings",
"-Ywarn-numeric-widen",
"-Ywarn-unused:imports",
"-Ymacro-annotations",
"-language:implicitConversions",
"-language:higherKinds" // allow higher kinded types without `import scala.language.higherKinds`
)
val commonSettings = Seq(
scalacOptions ++= mainCompilerOptions,
libraryDependencies ++= Seq(
monixEval
),
addCompilerPlugin(bm4)
)
lazy val `currencies-updater` = (project in file("currencies-updater"))
.settings(commonSettings: _*)
.settings(
name := "currencies-updater",
libraryDependencies ++= Seq(
logbackClassic,
tofuCore,
tofuLogging,
pureconfig,
circeCore,
circeGeneric,
doobieCore,
doobiePostgres,
doobieHikari,
flyway,
scalaTest % Test
)
)
.enablePlugins(JavaAppPackaging)
.dependsOn(`http-client`)
.dependsOn(`tofu-ext`)
lazy val `http-client` = (project in file("http-client"))
.settings(commonSettings: _*)
.settings(
name := "http-client",
libraryDependencies ++= Seq(
logbackClassic,
tofuCore,
tofuLogging,
pureconfig,
sttpCore,
sttpCirce,
sttpAsyncHttpFs2Backend,
circeCore,
circeGeneric,
scalaTest % Test
)
)
lazy val `tofu-ext` = (project in file("tofu-ext"))
.settings(commonSettings: _*)
.settings(
name := "tofu-ext",
libraryDependencies ++= Seq(
tofuCore,
scalaTest % Test
)
)