Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also register CacheLoader for reflection #507

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;

import com.github.benmanes.caffeine.cache.CacheLoader;

import io.quarkiverse.githubapp.ConfigFile;
import io.quarkiverse.githubapp.GitHubEvent;
import io.quarkiverse.githubapp.deployment.DispatchingConfiguration.EventAnnotation;
Expand Down Expand Up @@ -193,6 +195,10 @@ void registerForReflection(CombinedIndexBuildItem combinedIndex,
.methods(true)
.fields(true)
.build());
reflectiveClasses.produce(ReflectiveClassBuildItem
.builder(CacheLoader.class)
.methods(true)
.build());
reflectiveClasses.produce(ReflectiveClassBuildItem
.builder(GitHubService.class.getName() + "$CreateInstallationToken")
.methods(true)
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/includes/attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:quarkus-version: 3.2.3.Final
:quarkus-version: 3.3.0
:quarkus-github-app-version: 2.0.5

:github-api-javadoc-root-url: https://github-api.kohsuke.org/apidocs/org/kohsuke/github
Expand Down
10 changes: 10 additions & 0 deletions docs/modules/ROOT/pages/includes/quarkus-github-app.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ h|Default

a| [[quarkus-github-app_quarkus.github-app.app-id]]`link:#quarkus-github-app_quarkus.github-app.app-id[quarkus.github-app.app-id]`


[.description]
--
The numeric application id provided by GitHub.
Expand All @@ -30,6 +31,7 @@ endif::add-copy-button-to-env-var[]

a| [[quarkus-github-app_quarkus.github-app.app-name]]`link:#quarkus-github-app_quarkus.github-app.app-name[quarkus.github-app.app-name]`


[.description]
--
The GitHub name of the application.
Expand All @@ -48,6 +50,7 @@ endif::add-copy-button-to-env-var[]

a| [[quarkus-github-app_quarkus.github-app.read-config-files-from-source-repository]]`link:#quarkus-github-app_quarkus.github-app.read-config-files-from-source-repository[quarkus.github-app.read-config-files-from-source-repository]`


[.description]
--
Read the configuration files from the source repository in case of a fork.
Expand All @@ -64,6 +67,7 @@ endif::add-copy-button-to-env-var[]

a| [[quarkus-github-app_quarkus.github-app.private-key]]`link:#quarkus-github-app_quarkus.github-app.private-key[quarkus.github-app.private-key]`


[.description]
--
The RSA private key.
Expand All @@ -83,6 +87,7 @@ endif::add-copy-button-to-env-var[]

a| [[quarkus-github-app_quarkus.github-app.webhook-secret]]`link:#quarkus-github-app_quarkus.github-app.webhook-secret[quarkus.github-app.webhook-secret]`


[.description]
--
The webhook secret if defined in the GitHub UI.
Expand All @@ -99,6 +104,7 @@ endif::add-copy-button-to-env-var[]

a| [[quarkus-github-app_quarkus.github-app.webhook-proxy-url]]`link:#quarkus-github-app_quarkus.github-app.webhook-proxy-url[quarkus.github-app.webhook-proxy-url]`


[.description]
--
The Smee.io proxy URL used when testing locally.
Expand All @@ -115,6 +121,7 @@ endif::add-copy-button-to-env-var[]

a| [[quarkus-github-app_quarkus.github-app.instance-endpoint]]`link:#quarkus-github-app_quarkus.github-app.instance-endpoint[quarkus.github-app.instance-endpoint]`


[.description]
--
The GitHub instance endpoint.
Expand All @@ -133,6 +140,7 @@ endif::add-copy-button-to-env-var[]

a| [[quarkus-github-app_quarkus.github-app.rest-api-endpoint]]`link:#quarkus-github-app_quarkus.github-app.rest-api-endpoint[quarkus.github-app.rest-api-endpoint]`


[.description]
--
The REST API endpoint.
Expand All @@ -151,6 +159,7 @@ endif::add-copy-button-to-env-var[]

a| [[quarkus-github-app_quarkus.github-app.graphql-api-endpoint]]`link:#quarkus-github-app_quarkus.github-app.graphql-api-endpoint[quarkus.github-app.graphql-api-endpoint]`


[.description]
--
The GraphQL API endpoint.
Expand All @@ -169,6 +178,7 @@ endif::add-copy-button-to-env-var[]

a| [[quarkus-github-app_quarkus.github-app.debug.payload-directory]]`link:#quarkus-github-app_quarkus.github-app.debug.payload-directory[quarkus.github-app.debug.payload-directory]`


[.description]
--
A directory in which the payloads are saved.
Expand Down
Loading