-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
119 lines (109 loc) · 3.34 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
import Dependencies._
ThisBuild / scalaVersion := "2.13.4"
ThisBuild / organization := "dev.profunktor"
lazy val commonSettings = List(
scalafmtOnCompile := true,
startYear := Some(2020),
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")),
headerLicense := Some(HeaderLicense.ALv2("2020-2021", "ProfunKtor")),
ThisBuild / crossScalaVersions := Seq("2.13.4"),
ThisBuild / homepage := Some(url("https://github.com/profunktor/dorado")),
ThisBuild / organization := "dev.profunktor",
ThisBuild / organizationName := "ProfunKtor",
ThisBuild / developers := List(
Developer(
"gvolpe",
"Gabriel Volpe",
url("https://gvolpe.com")
)
)
)
lazy val noPublish = {
skip in publish := true
}
lazy val root = (project in file("."))
.enablePlugins(AutomateHeaderPlugin)
.settings(commonSettings)
.settings(noPublish)
.aggregate(
`dorado-core`,
`dorado-munit-core`,
`dorado-munit-circe`,
`dorado-weaver-core`,
`dorado-weaver-circe`,
examples
)
lazy val `dorado-core` = (project in file("modules/core"))
.enablePlugins(AutomateHeaderPlugin)
.settings(commonSettings)
.settings(
libraryDependencies ++= List(
CompilerPlugins.kindProjector,
Libraries.shapeless
)
)
lazy val `dorado-munit-core` = (project in file("modules/munit-core"))
.enablePlugins(AutomateHeaderPlugin)
.settings(commonSettings)
.settings(
libraryDependencies ++= List(
CompilerPlugins.kindProjector,
Libraries.munitCore
)
)
.dependsOn(`dorado-core`)
lazy val `dorado-munit-circe` = (project in file("modules/munit-circe"))
.enablePlugins(AutomateHeaderPlugin)
.settings(commonSettings)
.settings(
libraryDependencies ++= List(
CompilerPlugins.kindProjector,
Libraries.circeCore,
Libraries.circeParser,
Libraries.munitCore
)
)
.dependsOn(`dorado-munit-core`)
lazy val `dorado-weaver-core` = (project in file("modules/weaver-core"))
.enablePlugins(AutomateHeaderPlugin)
.settings(commonSettings)
.settings(
libraryDependencies ++= List(
CompilerPlugins.kindProjector,
Libraries.weaverCats
)
)
.dependsOn(`dorado-core`)
lazy val `dorado-weaver-circe` = (project in file("modules/weaver-circe"))
.enablePlugins(AutomateHeaderPlugin)
.settings(commonSettings)
.settings(
libraryDependencies ++= List(
CompilerPlugins.kindProjector,
Libraries.circeCore,
Libraries.circeParser,
Libraries.weaverCats
)
)
.dependsOn(`dorado-weaver-core`)
lazy val examples = (project in file("modules/examples"))
.enablePlugins(AutomateHeaderPlugin)
.settings(commonSettings)
.settings(noPublish)
.settings(
scalacOptions += "-Ymacro-annotations",
testFrameworks += new TestFramework("munit.Framework"),
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
libraryDependencies ++= List(
CompilerPlugins.kindProjector,
Libraries.cats,
Libraries.catsEffect,
Libraries.circeGeneric,
Libraries.newtype,
Libraries.refined,
Libraries.munitCore % Test,
Libraries.weaverCats % Test
)
)
.dependsOn(`dorado-munit-circe`, `dorado-weaver-circe`)