-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
76 lines (66 loc) · 2.16 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
75
76
ThisBuild / scalaVersion := "3.2.2"
ThisBuild / organization := "eu.monniot"
ThisBuild / homepage := Some(url("https://github.com/fmonniot/scala3mock"))
ThisBuild / licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT"))
ThisBuild / releaseNotesURL := Some(
url("https://github.com/fmonniot/scala3mock/releases")
)
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/fmonniot/scala3mock"),
"git@github.com:fmonniot/scala3mock.git"
)
)
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / developers := List(
Developer(
"fmonniot",
"François Monniot",
"francoismonniot@gmail.com",
url("https://francois.monniot.eu")
)
// Not sure if we should include the original ScalaMock devs here as well ?
)
lazy val scala3mock = project
.in(file("."))
.aggregate(core, cats, scalatest)
.settings(publish / skip := true)
lazy val core = project
.in(file("./core"))
.settings(
name := "scala3mock",
scalacOptions ++= Seq("-feature", "-explain"),
Test / scalacOptions += "-Xcheck-macros",
// Useful when using the PrintAst[type] macro. That will provides the implementation
// details of classes. Without it, only the signatures are available.
// Test / scalacOptions += "-Yretain-trees", // For debugging when writing macros
libraryDependencies += "org.scalameta" %% "munit" % "1.0.0-M10" % Test
)
lazy val cats = project
.in(file("./cats"))
.dependsOn(core)
.settings(
name := "scala3mock-cats",
libraryDependencies += "org.typelevel" %% "cats-core" % "2.9.0",
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "1.0.0-M10" % Test,
"org.typelevel" %% "cats-effect" % "3.5.2" % Test
)
)
lazy val scalatest = project
.in(file("./scalatest"))
.dependsOn(core)
.settings(
name := "scala3mock-scalatest",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.17"
)
lazy val docs = project
.in(file("site-docs")) // important: it must not be docs/
.dependsOn(core, scalatest)
.enablePlugins(MdocPlugin, DocusaurusPlugin)
.settings(
publish / skip := true,
mdocVariables := Map(
"VERSION" -> (core / version).value
)
)