-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
64 lines (55 loc) · 2.14 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
lazy val V = new {
val Scala213 = "2.13.15"
val Scala3 = "3.3.4"
val Skunk = "1.0.0-M8"
val Cats = "2.12.0"
val CatsEffect = "3.5.7"
val Munit = "1.0.0"
val MunitCatsEffect = "2.0.0"
val Testcontainers = "0.41.4"
}
// https://typelevel.org/sbt-typelevel/faq.html#what-is-a-base-version-anyway
ThisBuild / tlBaseVersion := "0.0" // your current series x.y
ThisBuild / organization := "de.thatscalaguy"
ThisBuild / organizationName := "ThatScalaGuy"
ThisBuild / startYear := Some(2024)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("ThatScalaGuy", "Sven Herrmann")
)
// publish to s01.oss.sonatype.org (set to true to publish to oss.sonatype.org instead)
ThisBuild / tlSonatypeUseLegacyHost := false
// publish website from this branch
ThisBuild / tlSitePublishBranch := Some("main")
ThisBuild / crossScalaVersions := Seq(V.Scala213, V.Scala3)
ThisBuild / scalaVersion := V.Scala213 // the default Scala
Test / fork := true
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat
lazy val root = (project in file("."))
.enablePlugins(NoPublishPlugin)
.aggregate(core)
lazy val core = project
.in(file("core"))
.settings(
name := "skunk-crypt",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % V.Cats % "provided",
"org.typelevel" %% "cats-effect" % V.CatsEffect % "provided",
"org.tpolecat" %% "skunk-core" % V.Skunk % "provided",
"org.scalameta" %% "munit" % "1.0.2" % Test,
"org.typelevel" %% "munit-cats-effect" % "2.0.0" % Test,
"com.dimafeng" %% "testcontainers-scala-munit" % "0.41.4" % Test
)
)
lazy val docs = project
.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.settings(tlSiteHelium ~= {
import laika.helium.config._
import laika.ast.Path.Root
_.site
.topNavigationBar(
homeLink = IconLink.internal(Root / "index.md", HeliumIcon.home)
)
})