@@ -145,8 +145,21 @@ val akkaHttpTestkit = "com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVer
145
145
def akkaHttpInExamples = {
146
146
val akkaHttpSprayJson = " com.typesafe.akka" %% " akka-http-spray-json" % akkaHttpVersion
147
147
Seq (akkaStream.cross(CrossVersion .for3Use2_13),
148
- akkaHttp.cross(CrossVersion .for3Use2_13),
149
- akkaHttpSprayJson.cross(CrossVersion .for3Use2_13))
148
+ akkaHttp.cross(CrossVersion .for3Use2_13),
149
+ akkaHttpSprayJson.cross(CrossVersion .for3Use2_13))
150
+ }
151
+
152
+ val pekkoVersion = " 1.0.1"
153
+ val pekkoHttpVersion = " 1.0.0"
154
+ val pekkoHttpJsonV = " 2.0.0"
155
+ val pekkoStream = " org.apache.pekko" %% " pekko-stream" % pekkoVersion
156
+ val pekkoStreamTestkit = " org.apache.pekko" %% " pekko-stream-testkit" % pekkoVersion
157
+ val pekkoHttp = " org.apache.pekko" %% " pekko-http" % pekkoHttpVersion
158
+ val pekkoHttpTestkit = " org.apache.pekko" %% " pekko-http-testkit" % pekkoHttpVersion
159
+
160
+ def pekkoHttpInExamples = {
161
+ val pekkoHttpSprayJson = " org.apache.pekko" %% " pekko-http-spray-json" % pekkoHttpVersion
162
+ Seq (pekkoStream, pekkoHttp, pekkoHttpSprayJson)
150
163
}
151
164
152
165
val http4sVersion = " 0.23.23"
@@ -158,6 +171,8 @@ val http4sStirTestkit = "pl.iterators" %% "http4s-stir-testkit" % http4sStirVers
158
171
159
172
def akkaHttpInBenchmarks = akkaHttpInExamples :+ (akkaHttpTestkit).cross(CrossVersion .for3Use2_13)
160
173
174
+ def pekkoHttpInBenchmarks = pekkoHttpInExamples :+ pekkoHttpTestkit
175
+
161
176
lazy val commonSettings = baseSettings ++ Seq (
162
177
scalacOptions ++=
163
178
(if (scalaVersion.value.startsWith(" 3" ))
@@ -214,6 +229,16 @@ lazy val akkaHttpSettings = commonSettings ++ Seq(
214
229
scalacOptions ++= paradiseFlag(scalaVersion.value)
215
230
)
216
231
232
+ lazy val pekkoHttpSettings = commonSettings ++ Seq (
233
+ libraryDependencies += pekkoHttp,
234
+ libraryDependencies += pekkoStream,
235
+ libraryDependencies += pekkoStreamTestkit % " test" ,
236
+ libraryDependencies += pekkoHttpTestkit % " test" ,
237
+ libraryDependencies += optionalEnumeratum,
238
+ libraryDependencies ++= paradisePlugin(scalaVersion.value),
239
+ scalacOptions ++= paradiseFlag(scalaVersion.value)
240
+ )
241
+
217
242
lazy val http4sSettings = commonSettings ++ Seq (
218
243
libraryDependencies += http4s,
219
244
libraryDependencies += optionalEnumeratum,
@@ -253,13 +278,14 @@ lazy val examplesSettings = commonSettings ++ Seq(
253
278
libraryDependencies += slickPg.cross(CrossVersion .for3Use2_13),
254
279
libraryDependencies += circeParser,
255
280
libraryDependencies ++= enumeratumInExamples,
256
- libraryDependencies ++= akkaHttpInExamples ,
281
+ libraryDependencies ++= pekkoHttpInExamples ,
257
282
libraryDependencies ++= paradisePlugin(scalaVersion.value),
258
283
scalacOptions ++= paradiseFlag(scalaVersion.value)
259
284
)
260
285
261
286
lazy val benchmarkSettings = commonSettings ++ Seq (
262
287
libraryDependencies += scalaTest.value,
288
+ libraryDependencies ++= pekkoHttpInBenchmarks,
263
289
libraryDependencies += enumeratum,
264
290
libraryDependencies ++= akkaHttpInBenchmarks
265
291
)
@@ -389,6 +415,18 @@ lazy val akkaHttpSupport = project
389
415
crossScalaVersions := supportedScalaVersions
390
416
)
391
417
418
+ lazy val pekkoHttpSupport = project
419
+ .in(file(" pekko-http" ))
420
+ .dependsOn(core.jvm, instances % " test -> test" , tagged.jvm % " test -> test" , taggedMeta % " test -> test" )
421
+ .settings(pekkoHttpSettings : _* )
422
+ .settings(publishSettings : _* )
423
+ .settings(
424
+ name := " pekko-http" ,
425
+ description := " Automatic generation of pekko-http deserializers for 1-element case classes" ,
426
+ moduleName := " kebs-pekko-http" ,
427
+ crossScalaVersions := supportedScalaVersions
428
+ )
429
+
392
430
lazy val http4sSupport = project
393
431
.in(file(" http4s" ))
394
432
.dependsOn(core.jvm, instances, opaque.jvm % " test -> test" , tagged.jvm % " test -> test" , taggedMeta % " test -> test" )
@@ -491,7 +529,7 @@ lazy val taggedMeta = project
491
529
492
530
lazy val examples = project
493
531
.in(file(" examples" ))
494
- .dependsOn(slickSupport, sprayJsonSupport, playJsonSupport, akkaHttpSupport , taggedMeta, circeSupport, instances)
532
+ .dependsOn(slickSupport, sprayJsonSupport, playJsonSupport, pekkoHttpSupport , taggedMeta, circeSupport, instances)
495
533
.settings(examplesSettings : _* )
496
534
.settings(noPublishSettings : _* )
497
535
.settings(disableScala(List (" 3" )))
@@ -542,6 +580,7 @@ lazy val kebs = project
542
580
jsonschemaSupport,
543
581
scalacheckSupport,
544
582
akkaHttpSupport,
583
+ pekkoHttpSupport,
545
584
http4sSupport,
546
585
http4sStirSupport,
547
586
taggedMeta,
0 commit comments