-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
117 lines (109 loc) · 3.04 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
val scala3 = "3.3.4"
Global / concurrentRestrictions += Tags.limit(Tags.All, 1)
val commonSettings = Seq(
organization := "org.virtuslab",
description := "Safe compile-time parallelization of for-comprehensions for Scala 3",
homepage := Some(url("https://github.com/VirtusLab/avocADO")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"KacperFKorban",
"Kacper Korban",
url("https://twitter.com/KacperFKorban")
)
),
scalaVersion := scala3,
scalacOptions ++= Seq(
"-Xcheck-macros",
"-Ycheck:inlining",
"-explain",
"-deprecation",
"-unchecked",
"-feature"
),
libraryDependencies ++= Seq(
"org.scalameta" %%% "munit" % "1.0.0" % Test
)
)
lazy val root = project
.in(file("."))
.settings(commonSettings)
.settings(
name := "avocADO-root",
publish / skip := true
)
.aggregate((
avocado.projectRefs
++ cats.projectRefs
++ zio2.projectRefs
++ zio1.projectRefs
++ zioquery.projectRefs
)*)
lazy val avocado = projectMatrix
.in(file("avocADO"))
.settings(commonSettings)
.settings(
name := "avocADO",
Compile / doc / scalacOptions ++= Seq(
"-siteroot", "docs"
)
)
.jvmPlatform(scalaVersions = List(scala3))
.jsPlatform(scalaVersions = Seq(scala3))
.nativePlatform(scalaVersions = Seq(scala3))
lazy val cats = projectMatrix
.in(file("cats"))
.settings(commonSettings)
.settings(
name := "avocADO-cats",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.10.0",
"org.typelevel" %%% "cats-effect" % "3.5.6" % Test
)
)
.dependsOn(avocado)
.jvmPlatform(scalaVersions = List(scala3))
.jsPlatform(scalaVersions = Seq(scala3))
.nativePlatform(scalaVersions = Seq(scala3))
lazy val zio2 = projectMatrix
.in(file("zio-2"))
.settings(commonSettings)
.settings(
name := "avocADO-zio-2",
libraryDependencies ++= Seq(
"dev.zio" %%% "zio" % "2.1.6"
),
scalacOptions := scalacOptions.value.filterNot(_ == "-Xcheck-macros")
)
.dependsOn(avocado)
.jvmPlatform(scalaVersions = List(scala3))
.jsPlatform(scalaVersions = Seq(scala3))
.nativePlatform(scalaVersions = Seq(scala3))
lazy val zio1 = projectMatrix
.in(file("zio-1"))
.settings(commonSettings)
.settings(
name := "avocADO-zio-1",
libraryDependencies ++= Seq(
"dev.zio" %%% "zio" % "1.0.18"
)
)
.dependsOn(avocado)
.jvmPlatform(scalaVersions = List(scala3))
.jsPlatform(scalaVersions = Seq(scala3))
.nativePlatform(scalaVersions = Seq(scala3))
lazy val zioquery = projectMatrix
.in(file("zio-query"))
.settings(commonSettings)
.settings(
name := "avocADO-zio-query",
libraryDependencies ++= Seq(
"dev.zio" %% "zio-query" % "0.7.3"
),
scalacOptions := scalacOptions.value.filterNot(_ == "-Xcheck-macros")
)
.dependsOn(avocado)
.jvmPlatform(scalaVersions = List(scala3))
.jsPlatform(scalaVersions = Seq(scala3))
.nativePlatform(scalaVersions = Seq(scala3))