-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
140 lines (116 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name := "zio-http4s-examples"
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
resolvers += Resolver.sonatypeRepo("releases")
inThisBuild(Seq(
version := "0.8",
isSnapshot := true,
scalaVersion := "2.13.3",
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
))
lazy val myScalacOptions = Seq(
"-feature",
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-deprecation",
"-Xfuture",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-language:postfixOps",
"-language:higherKinds",
"-language:implicitConversions",
"-Ywarn-value-discard",
)
lazy val scalaTestVersion = "3.0.8"
lazy val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "1.3.0"
lazy val json4s = "org.json4s" %% "json4s-jackson" % "3.6.6"
lazy val cats = "org.typelevel" %% "cats-core" % "2.1.1"
lazy val catsEffect = "org.typelevel" %% "cats-effect" % "2.2.0"
val commonsIo = "commons-io" % "commons-io" % "2.4"
val logback = "ch.qos.logback" % "logback-classic" % "1.2.3"
val magnolia = "com.propensive" %% "magnolia" % "0.17.0"
lazy val avro = "org.apache.avro" % "avro" % "1.9.1"
lazy val snappy = "org.xerial.snappy" % "snappy-java" % "1.1.7.3"
lazy val Http4sVersion = "0.21.3"
lazy val http4sBlazeServer = "org.http4s" %% "http4s-blaze-server" % Http4sVersion
lazy val http4sBlazeClient = "org.http4s" %% "http4s-blaze-client" % Http4sVersion
lazy val http4sDsl = "org.http4s" %% "http4s-dsl" % Http4sVersion
lazy val zioVersion = "1.0.1"
lazy val zio = "dev.zio" %% "zio" % zioVersion
lazy val `zio-streams` = "dev.zio" %% "zio-streams" % zioVersion
// lazy val `zio-kafka` = "dev.zio" %% "zio-kafka" % `zio-kafka-version`
lazy val `zio-test` = "dev.zio" %% "zio-test" % zioVersion % "test"
lazy val `zio-test-sbt` = "dev.zio" %% "zio-test-sbt" % zioVersion % "test"
lazy val `zio-interop-shared` = "dev.zio" %% "zio-interop-shared" % zioVersion
// lazy val `zio-interop-cats` = "dev.zio" %% "zio-interop-cats" % `zio-interop`
val uzhttp = "org.polynote" %% "uzhttp" % "0.2.5"
val sttpVersion = "2.2.9"
val sttp = "com.softwaremill.sttp.client" %% "core" % sttpVersion
val sttpzio = "com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % sttpVersion
val sttpziostreams = "com.softwaremill.sttp.client" %% "async-http-client-backend-zio-streams" % sttpVersion
lazy val commonSettings = Seq(
parallelExecution in Test := false,
scalacOptions ++= myScalacOptions,
organization := "com.optrak",
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.11.0" cross CrossVersion.full),
exportJars := true,
updateOptions := updateOptions.value.withCachedResolution(true),
libraryDependencies ++= Seq(
// `zio-interop-cats`,
zio,
`zio-test`,
`zio-test-sbt`
)
)
/*
lazy val `http4s1` = (project in file ("http4s1"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
http4sBlazeServer,
http4sBlazeClient,
http4sDsl,
catsEffect,
scalaXml,
`zio-test`
))
*/
lazy val `uzsttp` = (project in file ("uzsttp"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
uzhttp,
`zio-streams`,
sttp,
sttpzio,
// sttpziostreams,
catsEffect,
scalaXml,
`zio-test`
))
/*
lazy val `avro-magnolia` = (project in file ("avro-magnolia"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
commonsIo,
logback,
scalaTest,
json4s,
avro,
snappy,
magnolia,
)
)
lazy val `streams` = (project in file ("streams"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
http4sBlazeServer,
http4sBlazeClient,
http4sDsl,
catsEffect,
scalaXml,
`zio-kafka`,
`zio-streams`,
`zio-test`
))
*/
parallelExecution in Test := false