-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
70 lines (62 loc) · 2.08 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
import Deps._
import org.typelevel.scalacoptions.ScalacOptions
lazy val coursera = project in file("coursera")
lazy val commonSettings = Seq(
tpolecatScalacOptions ++= Set(
ScalacOptions.release("11"),
ScalacOptions.warnNonUnitStatement,
)
)
inThisBuild(
Seq(
addCompilerPlugin(Deps.sbtBetterMonadicFor),
addCompilerPlugin(Deps.sbtKindProjector.cross(CrossVersion.full)),
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
scalafixDependencies ++= Deps.sbtScalafix.value,
)
)
lazy val algorithms = project
.in(file("algorithms"))
.settings(
scalaVersion := Deps.Versions.Scala,
version := "0.1",
name := "algorithms",
libraryDependencies ++= algsProjectDeps,
testFrameworks += new TestFramework("weaver.framework.CatsEffect")
)
lazy val sparkStepik = project
.in(file("spark_stepik"))
.settings(
scalaVersion := "2.12.15",
version := "0.1",
name := "spark_stepik",
libraryDependencies ++= sparkStepikProjectDeps,
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
idePackagePrefix := Some("spark_stepik.cluster")
)
lazy val sparkStreaming = project
.in(file("spark_streaming"))
.settings(
scalaVersion := Deps.Versions.Scala,
version := "0.1",
name := "spark_streaming",
libraryDependencies ++= sparkStepikProjectDeps,
testFrameworks += new TestFramework("weaver.framework.CatsEffect")
)
lazy val shoppingCart = project
.in(file("shopping_cart"))
.settings(
scalaVersion := Deps.Versions.Scala,
ThisBuild / libraryDependencySchemes += "io.circe" %% "circe-core" % VersionScheme.Always,
scalacOptions
++= Seq(
"-Ymacro-annotations", "-Wconf:cat=unused:info"
),
version := "0.1",
name := "shopping_cart",
libraryDependencies ++= shoppingCartProjectDeps,
testFrameworks += new TestFramework("weaver.framework.CatsEffect")
)
lazy val root = (project in file("."))
.aggregate(algorithms, sparkStepik, sparkStreaming, shoppingCart)
.settings(name := """scala learn""")