-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
62 lines (55 loc) · 2.13 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
// https://typelevel.org/sbt-typelevel/faq.html#what-is-a-base-version-anyway
ThisBuild / tlBaseVersion := "0.2" // your current series x.y
ThisBuild / organization := "me.wojnowski"
ThisBuild / organizationName := "Jakub Wojnowski"
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.MIT)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("jwojnowski", "Jakub Wojnowski")
)
ThisBuild / tlSonatypeUseLegacyHost := false
ThisBuild / tlCiReleaseBranches := Seq("main")
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("21"))
val Scala213 = "2.13.15"
ThisBuild / crossScalaVersions := Seq(Scala213, "3.5.2")
ThisBuild / scalaVersion := Scala213 // the default Scala
lazy val root = tlCrossRootProject.aggregate(core, circe, tapir)
lazy val core =
project
.in(file("core"))
.settings(
name := "scuid",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.12.0",
"org.typelevel" %% "cats-effect" % "3.5.5",
"org.scalameta" %% "munit" % "1.0.2" % Test,
"org.scalameta" %% "munit-scalacheck" % "1.0.0" % Test,
"org.typelevel" %% "munit-cats-effect" % "2.0.0" % Test,
"org.typelevel" %% "scalacheck-effect-munit" % "2.0.0-M2" % Test,
"co.fs2" %% "fs2-core" % "3.11.0" % Test
)
)
lazy val circe =
project
.in(file("circe"))
.dependsOn(core % "compile->compile;test->test")
.settings(
name := "scuid-circe",
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % "0.14.10",
"io.circe" %% "circe-literal" % "0.14.10" % Test,
"org.scalameta" %% "munit" % "1.0.2" % Test,
"org.scalameta" %% "munit-scalacheck" % "1.0.0" % Test
)
)
lazy val tapir =
project
.in(file("tapir"))
.dependsOn(core % "compile->compile;test->test")
.settings(
name := "scuid-tapir",
libraryDependencies ++= Seq(
"com.softwaremill.sttp.tapir" %% "tapir-core" % "1.11.7"
)
)