-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
72 lines (65 loc) · 2.34 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
val scala213Version = "2.13.12"
ThisBuild / scalaVersion := scala213Version
ThisBuild / crossScalaVersions := Seq(scala213Version, "3.3.0")
ThisBuild / organization := "io.github.valdemargr"
ThisBuild / tlBaseVersion := "0.1"
ThisBuild / tlUntaggedAreSnapshots := false
ThisBuild / tlSonatypeUseLegacyHost := true
ThisBuild / tlCiMimaBinaryIssueCheck := false
ThisBuild / tlMimaPreviousVersions := Set.empty
ThisBuild / mimaReportSignatureProblems := false
ThisBuild / mimaFailOnProblem := false
ThisBuild / mimaPreviousArtifacts := Set.empty
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
Developer("valdemargr", "Valdemar Grange", "[email protected]", url("https://github.com/valdemargr"))
)
ThisBuild / headerLicense := Some(HeaderLicense.Custom("Copyright (c) 2024 Valdemar Grange"))
ThisBuild / headerEmptyLine := false
ThisBuild / startYear := Some(2024)
lazy val sharedSettings = Seq(
organization := "io.github.valdemargr",
organizationName := "Valdemar Grange",
autoCompilerPlugins := true,
tlCiMimaBinaryIssueCheck := false,
tlMimaPreviousVersions := Set.empty,
mimaReportSignatureProblems := false,
mimaFailOnProblem := false,
mimaPreviousArtifacts := Set.empty,
scalacOptions ++= {
if (scalaVersion.value.startsWith("2")) {
Seq(
"-Wunused:-nowarn",
"-Wconf:cat=unused-nowarn:s",
"-Ywarn-unused:-nowarn"
)
} else Seq.empty // Seq("-explain")
},
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "3.5.2",
// "org.typelevel" %% "cats-mtl" % "1.3.1",
"org.typelevel" %% "cats-core" % "2.9.0",
// "org.typelevel" %% "cats-free" % "2.9.0",
"org.typelevel" %% "vault" % "3.5.0",
"org.tpolecat" %% "sourcepos" % "1.1.0",
"org.scalameta" %% "munit" % "1.0.0-M10" % Test,
"org.typelevel" %% "munit-cats-effect" % "2.0.0-M3" % Test
)
)
lazy val core = project
.in(file("modules/core"))
.settings(sharedSettings)
.settings(name := "catch-effect")
lazy val readme = project
.in(file("modules/readme"))
.settings(
moduleName := "catch-effect-readme",
mdocIn := file("readme/README.md"),
mdocOut := file("./README.md"),
mdocVariables ++= Map(
"VERSION" -> tlLatestVersion.value.getOrElse(version.value)
),
tlFatalWarnings := false
)
.dependsOn(core)
.enablePlugins(MdocPlugin, NoPublishPlugin)