Skip to content

Commit 49c18ba

Browse files
authored
Merge pull request #175 from ProjectMapK/upd-versions
Update Kotlin and Jackson versions
2 parents e85f268 + 027a6db commit 49c18ba

File tree

4 files changed

+13
-37
lines changed

4 files changed

+13
-37
lines changed

.github/workflows/test-main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ jobs:
3838
java-version: [ '8', '11', '17', '20' ]
3939
# Minimum version, latest release version, latest pre-release version (if exists)
4040
kotlin:
41-
- name: '1.7.21'
42-
version: '1.7.21'
43-
k2: false
4441
- name: '1.8.22'
4542
version: '1.8.22'
4643
k2: false
@@ -50,6 +47,12 @@ jobs:
5047
- name: '1.9.20 K2'
5148
version: '1.9.20'
5249
k2: true
50+
- name: '2.0.0-Beta1'
51+
version: '2.0.0-Beta1'
52+
k2: false
53+
- name: '2.0.0-Beta1 K2'
54+
version: '2.0.0-Beta1'
55+
k2: true
5356
env:
5457
KOTLIN_VERSION: ${{ matrix.kotlin.version }}
5558
USE_K2: ${{ matrix.kotlin.k2 }}

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,18 @@ This project makes several disruptive changes to achieve more `Kotlin-like` beha
3434
Details are summarized in [KogeraSpecificImplementations](./docs/KogeraSpecificImplementations.md).
3535

3636
# Compatibility
37-
- `jackson 2.15.0`
37+
- `jackson 2.16.x`
3838
- `Java 8+`
39-
- `Kotlin 1.7.21+`
39+
- `Kotlin 1.8.22+`
4040

4141
## About compatibility checks
4242
Compatibility checks for `Java` and `Kotlin` are done by `CI` grid tests.
4343

4444
The `Java` test covers all currently supported LTS versions and the latest versions.
4545
Currently 8,11,17 and 20 are covered.
4646

47-
`Kotlin` is tested on the latest patch version and the latest `Beta` or `RC` version within each minor version since 1.7.21.
48-
Currently 1.7.21 and 1.9.20-Beta are covered.
49-
I hope to lower this version in the future, but currently the minimum `Kotlin` version that can be supported is 1.7 due to `kotlinx-metadata-jvm` constraints.
47+
`Kotlin` is tested with the latest patch version and the latest `Beta` or `RC` version within each minor version after the minimum version.
48+
The `Kotlin` version is the lowest version available with the latest `kotlinx-metadata-jvm`.
5049

5150
# Installation
5251
The package is temporarily published in `JitPack`.

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
`maven-publish` // for JitPack
33

4-
val kotlinVersion: String = System.getenv("KOTLIN_VERSION")?.takeIf { it.isNotEmpty() } ?: "1.7.21"
4+
val kotlinVersion: String = System.getenv("KOTLIN_VERSION")?.takeIf { it.isNotEmpty() } ?: "1.8.22"
55
kotlin("jvm") version kotlinVersion
66

77
java
@@ -10,7 +10,7 @@ plugins {
1010

1111
// Since group cannot be obtained by generateKogeraVersion, it is defined as a constant.
1212
val groupStr = "io.github.projectmapk"
13-
val jacksonVersion = "2.15.3"
13+
val jacksonVersion = "2.16.0"
1414
val generatedSrcPath = "${layout.buildDirectory.get()}/generated/kotlin"
1515

1616
group = groupStr
@@ -22,7 +22,7 @@ repositories {
2222

2323
dependencies {
2424
implementation(kotlin("stdlib"))
25-
implementation("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.6.2")
25+
implementation("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.7.0")
2626

2727
api("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}")
2828
api("com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}")

src/test/kotlin/io/github/projectmapk/jackson/module/kogera/zPorted/test/github/Github356.kt

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,6 @@ import org.junit.jupiter.api.Test
99
class TestGithub356 {
1010
private val mapper = jacksonObjectMapper()
1111

12-
@Test
13-
fun deserializeInlineClass() {
14-
assertEquals(
15-
ClassWithInlineMember(InlineClass("bar")),
16-
mapper.readValue<ClassWithInlineMember>("""{"inlineClassProperty":"bar"}""")
17-
)
18-
}
19-
20-
@Test
21-
fun serializeInlineClass() {
22-
assertEquals(
23-
"""{"inlineClassProperty":"bar"}""",
24-
mapper.writeValueAsString(ClassWithInlineMember(InlineClass("bar")))
25-
)
26-
}
27-
2812
@Test
2913
fun deserializeValueClass() {
3014
assertEquals(
@@ -42,16 +26,6 @@ class TestGithub356 {
4226
}
4327
}
4428

45-
// Deprecated usage kept at 1.5.0 upgrade; delete in the future
46-
inline class InlineClass(val value: String)
47-
48-
@JsonDeserialize(builder = ClassWithInlineMember.JacksonBuilder::class)
49-
data class ClassWithInlineMember(val inlineClassProperty: InlineClass) {
50-
data class JacksonBuilder constructor(val inlineClassProperty: String) {
51-
fun build() = ClassWithInlineMember(InlineClass(inlineClassProperty))
52-
}
53-
}
54-
5529
@JvmInline
5630
value class ValueClass(val value: String)
5731

0 commit comments

Comments
 (0)