File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
pekko/src/main/scala/sttp/capabilities/pekko Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ val commonNativeSettings = commonSettings ++ Seq(
75
75
)
76
76
77
77
lazy val allProjectRefs =
78
- core.projectRefs ++ ws.projectRefs ++ akka.projectRefs ++ armeria.projectRefs ++ fs2ce2.projectRefs ++ fs2.projectRefs ++ monix.projectRefs ++ zio1.projectRefs ++ zio.projectRefs ++ vertx.projectRefs
78
+ core.projectRefs ++ ws.projectRefs ++ akka.projectRefs ++ pekko.projectRefs ++ armeria.projectRefs ++ fs2ce2.projectRefs ++ fs2.projectRefs ++ monix.projectRefs ++ zio1.projectRefs ++ zio.projectRefs ++ vertx.projectRefs
79
79
80
80
lazy val projectAggregates : Seq [ProjectReference ] = if (sys.env.isDefinedAt(" STTP_NATIVE" )) {
81
81
println(" [info] STTP_NATIVE defined, including sttp-native in the aggregate projects" )
@@ -146,6 +146,18 @@ lazy val akka = (projectMatrix in file("akka"))
146
146
)
147
147
.dependsOn(core)
148
148
149
+ lazy val pekko = (projectMatrix in file(" pekko" ))
150
+ .settings(
151
+ name := " pekko"
152
+ )
153
+ .jvmPlatform(
154
+ scalaVersions = scala2alive ++ scala3,
155
+ settings = commonJvmSettings ++ Seq (
156
+ libraryDependencies += " org.apache.pekko" %% " pekko-stream" % " 1.0.0" % " provided"
157
+ )
158
+ )
159
+ .dependsOn(core)
160
+
149
161
lazy val armeria = (projectMatrix in file(" armeria" ))
150
162
.settings(
151
163
name := " armeria"
Original file line number Diff line number Diff line change
1
+ package sttp .capabilities .pekko
2
+
3
+ import org .apache .pekko
4
+ import pekko .stream .scaladsl .{Flow , Source }
5
+ import pekko .util .ByteString
6
+ import sttp .capabilities .Streams
7
+
8
+ trait PekkoStreams extends Streams [PekkoStreams ] {
9
+ override type BinaryStream = Source [ByteString , Any ]
10
+ override type Pipe [A , B ] = Flow [A , B , Any ]
11
+ }
12
+ object PekkoStreams extends PekkoStreams
You can’t perform that action at this time.
0 commit comments