-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
74 lines (69 loc) · 1.81 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
val scala3 = "3.3.3"
val commonSettings = Seq(
organization := "io.github.kacperfkorban",
description := "Automatic UI forms for Scala 3 functions",
homepage := Some(url("https://github.com/KacperFKorban/GUInep")),
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-M6" % Test
)
)
lazy val root = project
.in(file("."))
.settings(commonSettings)
.settings(
name := "GUInep-root",
publish / skip := true
)
.aggregate((guinep.projectRefs ++ web.projectRefs ++ testcases.projectRefs): _*)
lazy val guinep = projectMatrix
.in(file("guinep"))
.settings(commonSettings)
.settings(
name := "GUInep",
libraryDependencies ++= Seq(
"com.softwaremill.quicklens" %%% "quicklens" % "1.9.7"
)
)
.jvmPlatform(scalaVersions = List(scala3))
lazy val web = projectMatrix
.in(file("web"))
.settings(commonSettings)
.settings(
name := "GUInep-web",
Compile / doc / scalacOptions ++= Seq(
"-siteroot", "docs"
),
libraryDependencies ++= Seq(
"dev.zio" %% "zio-http" % "3.0.0-RC4",
"dev.zio" %% "zio-json" % "0.6.2"
)
)
.dependsOn(guinep)
.jvmPlatform(scalaVersions = List(scala3))
lazy val testcases = projectMatrix
.in(file("testcases"))
.settings(commonSettings)
.settings(
name := "GUInep-testcases",
publish / skip := true
)
.dependsOn(web)
.jvmPlatform(scalaVersions = List(scala3))