This repository has been archived by the owner on Aug 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
78 lines (69 loc) · 1.65 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
import BuildConfig._
lazy val scalaReflect = Def.setting {
"org.scala-lang" % "scala-reflect" % scalaVersion.value
}
organization in ThisBuild := "ua.pp.itkpi"
val `scala-2-12` = "2.12.10"
val `scala-2-13` = "2.13.1"
scalaVersion in ThisBuild := `scala-2-13`
crossScalaVersions in ThisBuild := Seq(`scala-2-12`, `scala-2-13`)
def sonatypeProject(id: String, base: File) =
Project(id, base)
.settings(
name := id,
resolvers += Resolver.sonatypeRepo("releases"),
libraryDependencies ++= Seq(
Macros.resetallattrs
)
)
.withMacroAnnotations()
.withCommonSettings()
lazy val cakeless = sonatypeProject(id = "cakeless", base = file("./cakeless"))
.settings(
libraryDependencies ++= {
Seq(
Macros.utils,
Zio.zio
)
}
)
.withZioTest()
lazy val examples = project
.in(file("./examples"))
.dependsOn(cakeless)
.settings(
skip in publish := true,
publish := {},
publishLocal := {},
name := "examples",
libraryDependencies ++= Seq(
Config.typesafe,
Tagging.supertagged
),
coverageEnabled := false
)
.withCommonSettings()
lazy val docs = project
.in(file("cakeless-docs"))
.settings(
mdocVariables := Map(
"VERSION" -> version.value
),
coverageEnabled := false,
libraryDependencies ++= Seq(
Config.typesafe,
Tagging.supertagged
)
)
.dependsOn(cakeless)
.enablePlugins(MdocPlugin)
lazy val root = project
.in(file("."))
.aggregate(cakeless, examples, docs)
.settings(
name := "cakeless-new-root",
skip in publish := true,
publish := {},
publishLocal := {}
)
.withCommonSettings()