@@ -25,6 +25,8 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
25
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
*/
27
27
28
+ import Dependencies .*
29
+
28
30
val scala213 = Seq (
29
31
" -deprecation" , // Emit warning and location for usages of deprecated APIs.
30
32
" -encoding" ,
@@ -220,15 +222,12 @@ lazy val model = (project in file("model"))
220
222
libraryDependencies ++= testDeps
221
223
)
222
224
223
- val akkaVersion = " 2.6.20"
224
- val akkaHttpVersion = " 10.2.10"
225
-
226
- lazy val akkaClient = (project in file(" akka-client" ))
225
+ lazy val pekkoClient = (project in file(" pekko-client" ))
227
226
.dependsOn(core)
228
227
.enablePlugins(MacrosCompiler )
229
228
.settings(scalafixSettings)
230
229
.settings(
231
- name := " jsonapi-scala-akka -client" ,
230
+ name := " jsonapi-scala-pekko -client" ,
232
231
scalaVersion := scalaVersion213,
233
232
crossScalaVersions := Seq (scalaVersion212, scalaVersion213),
234
233
scalacOptions ++= {
@@ -238,19 +237,21 @@ lazy val akkaClient = (project in file("akka-client"))
238
237
scala213
239
238
},
240
239
libraryDependencies ++= Seq (
241
- " com.typesafe.akka" %% " akka-stream" % akkaVersion % Provided ,
242
- " com.typesafe.akka" %% " akka-actor" % akkaVersion % Provided ,
243
- " com.typesafe.akka" %% " akka-http" % akkaHttpVersion % Provided ,
244
- " com.typesafe.akka" %% " akka-http-spray-json" % akkaHttpVersion % Provided
240
+ `pekko-stream` % Provided ,
241
+ `pekko-actor` % Provided ,
242
+ `pekko-http` % Provided ,
243
+ `pekko-http-spray-json` % Provided ,
244
+ " io.lemonlabs" %% " scala-uri" % " 4.0.3" % Test ,
245
+ " org.parboiled" %% " parboiled" % " 2.5.1" % Test
245
246
) ++ testDeps
246
247
)
247
248
248
- lazy val akka = (project in file(" akka " ))
249
+ lazy val pekko = (project in file(" pekko " ))
249
250
.dependsOn(core, model)
250
251
.enablePlugins(MacrosCompiler )
251
252
.settings(scalafixSettings)
252
253
.settings(
253
- name := " jsonapi-scala-akka " ,
254
+ name := " jsonapi-scala-pekko " ,
254
255
scalaVersion := scalaVersion213,
255
256
crossScalaVersions := Seq (scalaVersion212, scalaVersion213),
256
257
scalacOptions ++= {
@@ -260,16 +261,18 @@ lazy val akka = (project in file("akka"))
260
261
scala213
261
262
},
262
263
libraryDependencies ++= Seq (
263
- " com.typesafe.akka " %% " akka -actor" % akkaVersion % Provided excludeAll (
264
- ExclusionRule (organization = " com.typesafe.akka " , name = " akka -cluster" ),
265
- ExclusionRule (organization = " com.typesafe.akka " , name = " akka -remote" )
264
+ `pekko -actor` % Provided excludeAll (
265
+ ExclusionRule (organization = " org.apache.pekko " , name = " pekko -cluster" ),
266
+ ExclusionRule (organization = " org.apache.pekko " , name = " pekko -remote" )
266
267
),
267
- " com.typesafe.akka" %% " akka-stream" % akkaVersion % Provided ,
268
- " com.typesafe.akka" %% " akka-http" % akkaHttpVersion % Provided ,
269
- " com.typesafe.akka" %% " akka-http-core" % akkaHttpVersion % Provided ,
270
- " com.typesafe.akka" %% " akka-http-testkit" % akkaHttpVersion % Test ,
271
- " com.typesafe.akka" %% " akka-testkit" % akkaVersion % Test ,
272
- " org.scalatest" %% " scalatest" % " 3.2.14" % Test
268
+ `pekko-stream` % Provided ,
269
+ `pekko-http` % Provided ,
270
+ `pekko-http-core` % Provided ,
271
+ `pekko-http-testkit` % Test ,
272
+ `pekko-testkit` % Test ,
273
+ " io.lemonlabs" %% " scala-uri" % " 4.0.3" % Test ,
274
+ " org.parboiled" %% " parboiled" % " 2.5.1" % Test ,
275
+ " org.scalatest" %% " scalatest" % " 3.2.18" % Test
273
276
) ++ testDeps
274
277
)
275
278
@@ -298,7 +301,7 @@ lazy val http4sClient = (project in file("http4s-client"))
298
301
)
299
302
300
303
lazy val root = (project in file(" ." ))
301
- .aggregate(core, model, akkaClient , http4sClient, akka )
304
+ .aggregate(core, model, pekkoClient , http4sClient, pekko )
302
305
.settings(
303
306
publishArtifact := false ,
304
307
name := " jsonapi-scala" ,
0 commit comments