Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Refine support for kotlinx.serialization when reflection is involved
Browse files Browse the repository at this point in the history
Closes gh-1410
  • Loading branch information
sdeleuze committed Feb 4, 2022
1 parent 3c25932 commit 6cc507a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@
<artifactId>mojo-executor</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-serialization-json</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
5 changes: 5 additions & 0 deletions spring-native-configuration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
<artifactId>kotlin-stdlib</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-serialization-json</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
"java.lang.String"
}, access = {})
})

@NativeHint(trigger = kotlinx.serialization.descriptors.SerialDescriptor.class, types =
@TypeHint(types = { kotlinx.serialization.encoding.CompositeEncoder.class, kotlinx.serialization.descriptors.SerialDescriptor.class },
typeNames = "kotlinx.serialization.internal.SerializationConstructorMarker")
)
public class KotlinHints implements NativeConfiguration {
}

0 comments on commit 6cc507a

Please sign in to comment.