This repository has been archived by the owner on Dec 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
68 lines (57 loc) · 2.08 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
val JacksonVersion = "2.12.0"
ThisBuild / organization := "io.h8"
ThisBuild / scalaVersion := "3.0.0-M3"
ThisBuild / libraryDependencies ++= Seq(
//"org.scalamock" %% "scalamock" % "5.1.+" % Test,
"org.scalatest" %% "scalatest" % "3.2.+" % Test)
//ThisBuild / scalacOptions += "-Yexplicit-nulls"
lazy val core = project
.in(file("core"))
.settings(name := "borscht-core")
lazy val `provider-typesafe` = project
.in(file("provider/typesafe"))
.settings(
name := "borscht-typesafe",
libraryDependencies += "com.typesafe" % "config" % "1.4.1")
.dependsOn(core)
lazy val `provider-jackson` = project
.in(file("provider/jackson"))
.settings(
name := "borscht-jackson",
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % JacksonVersion)
.dependsOn(core)
lazy val `provider-jackson-yaml` = project
.in(file("provider/jackson/yaml"))
.settings(
name := "borscht-jackson",
libraryDependencies += "com.fasterxml.jackson.dataformat" % "jackson-dataformat-yaml" % JacksonVersion)
.dependsOn(`provider-jackson`)
lazy val `template-core` = project
.in(file("template/core"))
.settings(name := "borscht-template-core")
.dependsOn(`core`)
lazy val `template-st4` = project
.in(file("template/st4"))
.settings(
name := "borscht-template-st4",
libraryDependencies += "org.antlr" % "ST4" % "4.3.1")
.dependsOn(`template-core`)
lazy val examples = project
.in(file("examples"))
.settings(
name := "borscht-examples",
libraryDependencies ++= Seq( // for GitHub Scala CI
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-yaml" % JacksonVersion,
"org.antlr" % "ST4" % "4.3.1"),
classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat,
publishArtifact := false)
.dependsOn(`provider-typesafe`, `provider-jackson-yaml`, `template-st4`)
lazy val root = project
.in(file("."))
.settings(
name := "borscht",
publishArtifact := false)
.aggregate(
core, examples,
`provider-typesafe`, `provider-jackson`, `provider-jackson-yaml`,
`template-core`, `template-st4`)