Skip to content

Commit

Permalink
Merge pull request #232 from ProjectMapK/develop
Browse files Browse the repository at this point in the history
Release 2024-06-08 15:54:39 +0000
  • Loading branch information
k163377 authored Jun 8, 2024
2 parents a10665c + f4e64f7 commit d91cee1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ jobs:
fail-fast: false
matrix:
# LTS versions, latest version (if exists)
java-version: [ '8', '11', '17', '21' ]
java-version: [ '8', '11', '17', '21', '22' ]
# Minimum version, latest release version, latest pre-release version (if exists)
kotlin:
- name: '1.8.22'
version: '1.8.22'
k2: false
- name: '1.9.21'
version: '1.9.21'
- name: '1.9.23'
version: '1.9.23'
k2: false
- name: '1.9.21 K2'
version: '1.9.21'
- name: '1.9.23 K2'
version: '1.9.23'
k2: true
- name: '2.0.0-Beta3'
version: '2.0.0-Beta3'
- name: '2.0.0-Beta5'
version: '2.0.0-Beta5'
k2: false
- name: '2.0.0-Beta3 K2'
version: '2.0.0-Beta3'
- name: '2.0.0-Beta5 K2'
version: '2.0.0-Beta5'
k2: true
env:
KOTLIN_VERSION: ${{ matrix.kotlin.version }}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ val jacksonVersion = libs.versions.jackson.get()
val generatedSrcPath = "${layout.buildDirectory.get()}/generated/kotlin"

group = groupStr
version = "${jacksonVersion}-beta12"
version = "${jacksonVersion}-beta13"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "1.8.22" # Mainly for CI, it can be rewritten by environment variable.
jackson = "2.17.0"
jackson = "2.17.1"

# test libs
junit = "5.10.2"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Visitor API has already been deprecated, but the error is being suppressed for now.
@file:Suppress("DEPRECATION_ERROR")

package io.github.projectmapk.jackson.module.kogera

import kotlinx.metadata.ClassKind
Expand All @@ -12,10 +9,10 @@ import kotlinx.metadata.KmProperty
import kotlinx.metadata.KmType
import kotlinx.metadata.jvm.getterSignature
import kotlinx.metadata.jvm.signature
import kotlinx.metadata.kind
import java.lang.reflect.Constructor
import java.lang.reflect.Field
import java.lang.reflect.Method
import kotlinx.metadata.internal.metadata.deserialization.Flags as ProtoFlags

// Jackson Metadata Class
internal sealed interface JmClass {
Expand Down Expand Up @@ -61,7 +58,7 @@ private class JmClassImpl(
override val properties: List<KmProperty>

private val companionPropName: String? = kmClass.companionObject
override val kind: ClassKind = ClassKind.values()[ProtoFlags.CLASS_KIND.get(kmClass.flags).number]
override val kind: ClassKind = kmClass.kind
override val constructors: List<KmConstructor> = kmClass.constructors
override val sealedSubclasses: List<ClassName> = kmClass.sealedSubclasses
override val inlineClassUnderlyingType: KmType? = kmClass.inlineClassUnderlyingType
Expand Down

0 comments on commit d91cee1

Please sign in to comment.