Skip to content

Commit

Permalink
Upgrades kryo from 5.4.0 to 5.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danischroeter committed Nov 30, 2023
1 parent f4d3661 commit 1d0c717
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fullTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand All @@ -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

Expand All @@ -71,7 +72,7 @@ To use the official release of scala-kryo-serialization in Maven projects, pleas
<dependency>
<groupId>io.altoo</groupId>
<artifactId>scala-kryo-serialization_2.13</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
</dependency>
```

Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 1d0c717

Please sign in to comment.