-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
73 lines (53 loc) · 1.85 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
val scala3Version = "3.0.2"
// === MAIN DEPENDENCIES ===
// --- cats ---
val catsVersion = "2.6.1"
val catsDeps = Seq("cats-core")
.map(m => "org.typelevel" %% m % catsVersion)
// --- commons math ---
val commonsMathVersion = "3.6.1"
val commonsMathDeps = Seq("commons-math3")
.map(m => "org.apache.commons" % m % commonsMathVersion)
// --- scalactic ---
val scalacticVersion = "3.2.9"
val scalacticDeps = Seq("scalactic")
.map(m => "org.scalactic" %% m % scalacticVersion)
// --- scalactic ---
val scalaLoggingVersion = "3.9.4"
val scalaLoggingDeps = Seq("scala-logging")
.map(m => "com.typesafe.scala-logging" %% m % scalaLoggingVersion)
val logbackVersion = "1.2.6"
val logbackDeps = Seq("logback-classic")
.map(m => "ch.qos.logback" % m % logbackVersion)
// === TEST DEPENDENCIES ===
// --- scalacheck ---
val scalacheckVersion = "1.15.4"
val scalacheckDeps = Seq("scalacheck")
.map(m => "org.scalacheck" %% m % scalacheckVersion % "test")
// --- scalatest ---
val scalatestVersion = "3.2.9"
val scalatestDeps = Seq("scalatest")
.map(m => "org.scalatest" %% m % scalatestVersion % "test")
val scalatestPlusVersion = scalatestVersion + ".0"
val scalacheckBridgeSuffix = scalacheckVersion
.split(raw"\.").iterator.take(2).foldLeft("") { case (acc, elem) => acc + s"-$elem" }
val scalatestPlusDeps = Seq(s"scalacheck$scalacheckBridgeSuffix")
.map(m => "org.scalatestplus" %% m % scalatestPlusVersion % "test")
// === MODULES ===
// --- root ---
lazy val root = project
.in(file("."))
.settings(
name := "sdes",
version := "0.1.0",
scalaVersion := scala3Version,
libraryDependencies ++=
catsDeps
++ commonsMathDeps
++ scalacticDeps
++ scalacheckDeps
++ scalaLoggingDeps
++ logbackDeps
++ scalatestDeps
++ scalatestPlusDeps
)