-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbuild.sbt
More file actions
71 lines (64 loc) · 2.31 KB
/
build.sbt
File metadata and controls
71 lines (64 loc) · 2.31 KB
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
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / tlBaseVersion := "0.5"
ThisBuild / tlCiReleaseBranches := Seq()
ThisBuild / organization := "org.systemfw"
ThisBuild / organizationName := "Fabio Labella"
ThisBuild / developers ++= List(
tlGitHubDev("SystemFw", "Fabio Labella")
)
ThisBuild / licenses := List(("MIT", url("http://opensource.org/licenses/MIT")))
ThisBuild / startYear := Some(2017)
val Scala213 = "2.13.16"
ThisBuild / crossScalaVersions := Seq(Scala213, "3.3.6", "2.12.20")
ThisBuild / scalaVersion := (ThisBuild / crossScalaVersions).value.head
ThisBuild / initialCommands := """
|import cats._, data._, syntax.all._
|import cats.effect._, concurrent._
|import cats.effect.implicits._
|import cats.effect.unsafe.implicits.global
|import fs2._
|import fs2.concurrent._
|import scala.concurrent.duration._
|import upperbound._
""".stripMargin
// If debugging tests, it's sometimes useful to disable parallel
// execution and test result buffering:
// ThisBuild / Test / parallelExecution := false
// ThisBuild / Test / testOptions += Tests.Argument(TestFrameworks.MUnit, "-b")
lazy val root = tlCrossRootProject
.aggregate(core.jvm, core.js, core.native)
lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("modules/core"))
.settings(
name := "upperbound",
scalafmtOnCompile := true,
libraryDependencies ++= List(
"org.typelevel" %%% "cats-core" % "2.11.0",
"org.typelevel" %%% "cats-effect" % "3.6.1",
"org.typelevel" %%% "cats-effect-testkit" % "3.6.1" % Test,
"co.fs2" %%% "fs2-core" % "3.12.0",
"org.typelevel" %%% "munit-cats-effect" % "2.1.0" % Test,
"org.typelevel" %%% "scalacheck-effect-munit" % "2.0.0-M2" % Test
)
)
lazy val docs = project
.in(file("mdoc"))
.settings(
mdocIn := file("docs"),
mdocOut := file("target/website"),
mdocVariables := Map(
"version" -> tlLatestVersion.value.getOrElse(version.value),
"scalaVersions" -> crossScalaVersions.value
.map(v => s"- **$v**")
.mkString("\n")
),
laikaSite := {
sbt.IO.copyDirectory(mdocOut.value, (laikaSite / target).value)
Set.empty
},
tlJdkRelease := None,
tlFatalWarnings := false
)
.dependsOn(core.jvm)
.enablePlugins(TypelevelSitePlugin)