-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
63 lines (54 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
63
val settingsHelper = ProjectSettingsHelper("au.id.tmm", "intime")()
settingsHelper.settingsForBuild
lazy val root = project
.in(file("."))
.settings(settingsHelper.settingsForRootProject)
.settings(console := (console in Compile in core).value)
.aggregate(
core,
cats,
scalaCheck,
argonaut,
)
val catsVersion = "2.2.0-M3"
val catsEffectVersion = "2.1.3"
val fs2Version = "2.4.1"
val scalaCheckVersion = "1.14.3"
val scalaTestPlusVersion = "3.2.0.1-M2"
lazy val core = project
.in(file("core"))
.settings(settingsHelper.settingsForSubprojectCalled("core"))
.settings(
libraryDependencies += "org.typelevel" %% "cats-effect" % catsEffectVersion % Test,
libraryDependencies += "org.typelevel" %% "cats-core" % catsVersion % Test,
)
lazy val cats = project
.in(file("cats"))
.settings(settingsHelper.settingsForSubprojectCalled("cats"))
.settings(
libraryDependencies += "org.typelevel" %% "cats-core" % catsVersion,
libraryDependencies += "org.typelevel" %% "cats-testkit" % catsVersion % Test,
libraryDependencies += "org.typelevel" %% "cats-testkit-scalatest" % "1.0.1" % Test,
)
.dependsOn(core, scalaCheck % "test->compile")
lazy val scalaCheck = project
.in(file("scalacheck"))
.settings(settingsHelper.settingsForSubprojectCalled("scalacheck"))
.settings(
libraryDependencies += "org.scalacheck" %% "scalacheck" % scalaCheckVersion,
libraryDependencies += "org.scalatestplus" %% "scalacheck-1-14" % scalaTestPlusVersion % Test,
)
.dependsOn(core)
lazy val argonaut = project
.in(file("argonaut"))
.settings(settingsHelper.settingsForSubprojectCalled("argonaut"))
.settings(
libraryDependencies += "io.argonaut" %% "argonaut" % "6.2.3",
libraryDependencies += "org.scalatestplus" %% "scalacheck-1-14" % scalaTestPlusVersion % Test,
)
.dependsOn(scalaCheck % "test->compile")
addCommandAlias("check", ";+test;scalafmtCheckAll")
TaskKey[Unit]("regenerateManuallyComputedPeriodLengths") :=
(core / Test / runMain)
.toTask(" au.id.tmm.intime.ManuallyComputedPeriodDurations")
.value