From 26d46e5859a6d476f7890509ce96b51668f25587 Mon Sep 17 00:00:00 2001 From: Cornelius Wichering Date: Fri, 24 May 2024 09:37:48 +0200 Subject: [PATCH] fix: add `@RegisterForReflection` to `ReleaseInfo` To make it visible to graalvm native --- .markdownlint-cli2.yaml | 2 ++ api/src/main/kotlin/pp/api/ReleaseInfoResource.kt | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.markdownlint-cli2.yaml b/.markdownlint-cli2.yaml index 6a0c2eb..d9c92a4 100644 --- a/.markdownlint-cli2.yaml +++ b/.markdownlint-cli2.yaml @@ -14,6 +14,8 @@ config: MD024: # Only check sibling headings siblings_only: true + # see https://github.com/conventional-changelog/conventional-changelog/issues/615 + MD025: false "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/main/schema/markdownlint-cli2-config-schema.json" diff --git a/api/src/main/kotlin/pp/api/ReleaseInfoResource.kt b/api/src/main/kotlin/pp/api/ReleaseInfoResource.kt index ba77549..e4ef66f 100644 --- a/api/src/main/kotlin/pp/api/ReleaseInfoResource.kt +++ b/api/src/main/kotlin/pp/api/ReleaseInfoResource.kt @@ -2,6 +2,7 @@ package pp.api import io.quarkus.info.BuildInfo import io.quarkus.info.GitInfo +import io.quarkus.runtime.annotations.RegisterForReflection import jakarta.ws.rs.GET import jakarta.ws.rs.Path import jakarta.ws.rs.Produces @@ -32,6 +33,8 @@ class ReleaseInfoResource( * @property githubLink Link the commit used to build this version on github * @property version Project version from the gradle project */ + // see https://quarkus.io/guides/writing-native-applications-tips#registerForReflection + @RegisterForReflection(registerFullHierarchy = true) data class ReleaseInfo( val gitHash: String, val githubLink: String,