Skip to content

Commit

Permalink
fix: add @RegisterForReflection to ReleaseInfo
Browse files Browse the repository at this point in the history
To make it visible to graalvm native
  • Loading branch information
sne11ius committed May 24, 2024
1 parent d07a6f5 commit c8e0084
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/src/main/kotlin/pp/api/ReleaseInfoResource.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c8e0084

Please sign in to comment.