From 1d0c717fcf29413c8af1e381f8f667877df15c60 Mon Sep 17 00:00:00 2001 From: Daniel Schroeter Date: Thu, 30 Nov 2023 14:06:51 +0100 Subject: [PATCH] Upgrades kryo from 5.4.0 to 5.5.0 --- .github/workflows/fullTest.yml | 2 +- README.md | 15 ++++++++------- build.sbt | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/fullTest.yml b/.github/workflows/fullTest.yml index f6c8522..f33dfa5 100644 --- a/.github/workflows/fullTest.yml +++ b/.github/workflows/fullTest.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ 11, 17, 19 ] + java: [ 11, 17, 21 ] steps: - uses: actions/checkout@v2 - name: Set up JDK ${{ matrix.java }} diff --git a/README.md b/README.md index 0c951cc..75d678a 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,10 @@ To use this serializer, you need to do two things: We provide several versions of the library: -| Version | Kryo Compatibility | Available Scala Versions | Tested with | -|---------|--------------------|--------------------------|-----------------------------------------------------------------| -| v1.0.x | Kryo-5.4 | 2.12,2.13,3.1 | JDK: OpenJdk11,OpenJdk17 Scala: 2.12.18,2.13.11,3.3.0 | +| Version | Kryo Compatibility | Available Scala Versions | Tested with | +|---------|--------------------|--------------------------|---------------------------------------------------------------------| +| v1.1.x | Kryo-5.5 | 2.12,2.13,3 | JDK: OpenJdk11,OpenJdk17,OpenJdk21 Scala: 2.12.18,2.13.11,3.3.1 | +| v1.0.x | Kryo-5.4 | 2.12,2.13,3 | JDK: OpenJdk11,OpenJdk17 Scala: 2.12.18,2.13.11,3.3.1 | Note that we use semantic versioning - see [semver.org](https://semver.org/). @@ -52,7 +53,7 @@ Note that we use semantic versioning - see [semver.org](https://semver.org/). To use the latest stable release of scala-kryo-serialization in sbt projects you just need to add this dependency: -`libraryDependencies += "io.altoo" %% "scala-kryo-serialization" % "1.0.0"` +`libraryDependencies += "io.altoo" %% "scala-kryo-serialization" % "1.1.0"` #### maven projects @@ -71,7 +72,7 @@ To use the official release of scala-kryo-serialization in Maven projects, pleas io.altoo scala-kryo-serialization_2.13 - 1.0.0 + 1.1.0 ``` @@ -309,8 +310,8 @@ Enum Serialization Serialization of Java and Scala 3 enums is done by name (and not by index) to avoid having reordering of enum values breaking serialization. -Using Kryo on JDK 17 --------------------- +Using Kryo on JDK 17 and later +------------------------------ Kryo needs modules to be opened for reflection when serializing basic JDK classes. Those options have to be passed to the JVM, for example in sbt: diff --git a/build.sbt b/build.sbt index af324cc..36d1b83 100644 --- a/build.sbt +++ b/build.sbt @@ -7,7 +7,7 @@ import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._ val mainScalaVersion = "3.3.1" val secondaryScalaVersions = Seq("2.12.18", "2.13.12") -val kryoVersion = "5.4.0" +val kryoVersion = "5.5.0" enablePlugins(ReleasePlugin) addCommandAlias("validatePullRequest", ";+test")