Compile akka-serialization-jackson with Scala 3 (#30408)

Tests compile but one test fails - possibly because of the mixed Jackson
versions. Took inspiration from #30361

Refs #30243
This commit is contained in:
Arnout Engelen 2021-07-20 19:14:23 +02:00 committed by GitHub
parent ac70b1db38
commit fc1a375f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 9 deletions

View file

@ -293,14 +293,22 @@ object Dependencies {
jacksonCore,
jacksonAnnotations,
jacksonDatabind,
jacksonScala,
jacksonJdk8,
jacksonJsr310,
jacksonParameterNames,
jacksonCbor,
lz4Java,
Test.junit,
Test.scalatest)
Test.scalatest) ++
(if (getScalaVersion() == scala3Version)
// jackson-module-scala is only available for Scala 3 from 2.13.0 onwards.
// since we don't depend on it ourselves, but provide it as a transitive
// dependency for convenience, we can leave it out for Scala 3 for now,
// and depend on 2.13.0-rc1 for our tests. Eventually we should consider
// whether to update all jackson artifacts for Scala 3.
Seq("com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.13.0-rc1" % "test")
else
Seq(jacksonScala))
val osgi = l ++= Seq(
osgiCore,