@@ -10,10 +10,11 @@ val sttpModelVersion = "1.4.1"
10
10
11
11
val scalaTestVersion = " 3.2.7"
12
12
val zioVersion = " 1.0.5"
13
- val fs2Version : Option [(Long , Long )] => String = {
13
+ val fs2_2_version : Option [(Long , Long )] => String = {
14
14
case Some ((2 , 11 )) => " 2.1.0"
15
15
case _ => " 2.5.4"
16
16
}
17
+ val fs2_3_version = " 3.0.1"
17
18
18
19
excludeLintKeys in Global ++= Set (ideSkipProject)
19
20
@@ -58,15 +59,17 @@ val commonNativeSettings = commonSettings ++ Seq(
58
59
59
60
lazy val projectAggregates : Seq [ProjectReference ] = if (sys.env.isDefinedAt(" STTP_NATIVE" )) {
60
61
println(" [info] STTP_NATIVE defined, including sttp-native in the aggregate projects" )
61
- core.projectRefs ++ ws.projectRefs ++ akka.projectRefs ++ fs2.projectRefs ++ monix.projectRefs ++ zio.projectRefs
62
+ core.projectRefs ++ ws.projectRefs ++ akka.projectRefs ++ fs2ce2.projectRefs ++ fs2.projectRefs ++ monix.projectRefs ++ zio.projectRefs
62
63
} else {
63
64
println(" [info] STTP_NATIVE *not* defined, *not* including sttp-native in the aggregate projects" )
64
65
scala2.flatMap(v => List [ProjectReference ](core.js(v), ws.js(v))) ++
65
- scala2.flatMap(v => List [ProjectReference ](core.jvm(v), ws.jvm(v), fs2 .jvm(v), monix.jvm(v), zio.jvm(v))) ++
66
- scala3.flatMap(v => List [ProjectReference ](core.jvm(v), ws.jvm(v), fs2.jvm(v))) ++
66
+ scala2.flatMap(v => List [ProjectReference ](core.jvm(v), ws.jvm(v), fs2ce2 .jvm(v), monix.jvm(v), zio.jvm(v))) ++
67
+ scala3.flatMap(v => List [ProjectReference ](core.jvm(v), ws.jvm(v), fs2ce2.jvm(v), fs2.jvm(v))) ++
67
68
List [ProjectReference ](
68
69
akka.jvm(scala2_12),
69
70
akka.jvm(scala2_13),
71
+ fs2.jvm(scala2_12),
72
+ fs2.jvm(scala2_13),
70
73
monix.js(scala2_12),
71
74
monix.js(scala2_13),
72
75
zio.js(scala2_12),
@@ -129,11 +132,11 @@ lazy val akka = (projectMatrix in file("akka"))
129
132
)
130
133
.dependsOn(core)
131
134
132
- lazy val fs2 = (projectMatrix in file(" fs2" ))
135
+ lazy val fs2ce2 = (projectMatrix in file(" fs2-ce2 " ))
133
136
.settings(
134
- name := " fs2" ,
137
+ name := " fs2-ce2 " ,
135
138
libraryDependencies ++= dependenciesFor(scalaVersion.value)(
136
- " co.fs2" %% " fs2-io" % fs2Version (_)
139
+ " co.fs2" %% " fs2-io" % fs2_2_version (_)
137
140
)
138
141
)
139
142
.jvmPlatform(
@@ -142,6 +145,17 @@ lazy val fs2 = (projectMatrix in file("fs2"))
142
145
)
143
146
.dependsOn(core)
144
147
148
+ lazy val fs2 = (projectMatrix in file(" fs2" ))
149
+ .settings(
150
+ name := " fs2" ,
151
+ libraryDependencies += " co.fs2" %% " fs2-io" % fs2_3_version
152
+ )
153
+ .jvmPlatform(
154
+ scalaVersions = List (scala2_12, scala2_13) ++ scala3,
155
+ settings = commonJvmSettings
156
+ )
157
+ .dependsOn(core)
158
+
145
159
lazy val monix = (projectMatrix in file(" monix" ))
146
160
.settings(
147
161
name := " monix" ,
0 commit comments