-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
116 lines (100 loc) · 3.83 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
val scala3Version = "3.0.0-RC3"
val mainVersion = "0.3.0-SNAPSHOT"
ThisBuild / organization := "ru.primetalk"
ThisBuild / version := mainVersion
ThisBuild / scalaVersion := scala3Version
val catsEffect = "org.typelevel" %% "cats-effect" % "3.1.0"
val fs2 = libraryDependencies ++= Seq(
"co.fs2" %% "fs2-core" % "3.0.2",
"co.fs2" %% "fs2-io" % "3.0.2",
)
val commonSettings = Seq(
scalaVersion := scala3Version,
libraryDependencies ++= Seq(
"com.novocode" % "junit-interface" % "0.11" % "test",
catsEffect,
)
)
lazy val root = (project in file("."))
.aggregate(
concurrency,
akkaExamples,
)
.settings(
name := "scala-study"
)
lazy val concurrency = project
.in(file("concurrency"))
.settings(
name := "concurrency",
)
.settings(commonSettings :_*)
lazy val akkaVersion = "2.6.12"
lazy val akkaHttpVersion = "10.2.3"
lazy val akkaExamples = project
.in(file("akkaExamples"))
.settings(
name := "akkaExamples",
libraryDependencies ++= Seq(
"com.typesafe.akka" % "akka-actor-typed_2.13" % akkaVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.akka" % "akka-actor-testkit-typed_2.13" % akkaVersion % Test,
),
)
.settings(commonSettings :_*)
lazy val fs2Streaming = project
.in(file("fs2Streaming"))
.settings(
name := "fs2Streaming",
fs2,
libraryDependencies ++= Seq(
"com.typesafe.akka" % "akka-actor-typed_2.13" % akkaVersion,
"com.typesafe.akka" % "akka-stream_2.13" % akkaVersion,
"ru.primetalk" % "synapse-grid-core_2.13" % "1.5.0",
),
)
.settings(commonSettings:_*)
//libraryDependencies += "org.http4s" % "http4s-core_3.0.0-RC2" % "1.0.0-M21"
val Http4sVersion = "1.0.0-M21"//"0.21.19"
//val Http4sVersion = "0.22.0-M3"//"0.21.19"
val CirceVersion = "0.14.0-M6"//"0.13.0"
val circe = Seq(
"io.circe" %% "circe-core" % CirceVersion,
"io.circe" %% "circe-generic" % CirceVersion,
"io.circe" %% "circe-parser" % CirceVersion,
"io.circe" %% "circe-literal" % CirceVersion,
)
lazy val http4sTodoList = project
.in(file("http4sTodoList"))
.settings(
name := "http4sTodoList",
scalaVersion := scala3Version,
libraryDependencies += "org.http4s" % "http4s-core_3.0.0-RC2" % Http4sVersion,
libraryDependencies += "org.http4s" % "http4s-dsl_3.0.0-RC2" % Http4sVersion,
libraryDependencies += "org.http4s" % "http4s-circe_3.0.0-RC2" % Http4sVersion,
libraryDependencies += "org.http4s" % "http4s-blaze-server_3.0.0-RC2" % Http4sVersion,
libraryDependencies += "org.http4s" % "http4s-blaze-client_3.0.0-RC2" % Http4sVersion,
libraryDependencies += "org.http4s" % "blaze-http_2.13" % "0.15.0-M3",
libraryDependencies ++= circe,
mainClass := Some("ru.primetalk.study.rest.http4sexamples.TodoServer"),
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test",
)
lazy val akkaHttpTodoList = project
.in(file("akkaHttpTodoList"))
.settings(
name := "akkaHttpTodoList",
scalaVersion := scala3Version,
libraryDependencies ++= circe,
mainClass := Some("ru.primetalk.study.rest.akkahttpexamples.TodoServer"),
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test",
libraryDependencies ++= Seq(
"com.typesafe.akka" % "akka-http_2.13" % akkaHttpVersion,
"com.typesafe.akka" % "akka-http-spray-json_2.13" % akkaHttpVersion,
"com.typesafe.akka" % "akka-actor-typed_2.13" % akkaVersion,
"com.typesafe.akka" % "akka-stream_2.13" % akkaVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.akka" % "akka-http-testkit_2.13" % akkaHttpVersion % Test,
"com.typesafe.akka" % "akka-actor-testkit-typed_2.13" % akkaVersion % Test,
"org.scalatest" % "scalatest_2.13" % "3.1.4" % Test
)
)