From 5248a3253b3bdff9dfe74534679a95ac284c978e Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Tue, 13 Feb 2024 20:54:41 +0100 Subject: [PATCH] Polish SerializableGraphQlRequest for GraalVM support This commit improves the `SerializableGraphQlRequest` by declaring its reflection usage for GraalVM native applications. See gh-905 --- .../spring-graphql/reflect-config.json | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/spring-graphql/src/main/resources/META-INF/native-image/org.springframework.graphql/spring-graphql/reflect-config.json b/spring-graphql/src/main/resources/META-INF/native-image/org.springframework.graphql/spring-graphql/reflect-config.json index abe4c06e..6bdf25d5 100644 --- a/spring-graphql/src/main/resources/META-INF/native-image/org.springframework.graphql/spring-graphql/reflect-config.json +++ b/spring-graphql/src/main/resources/META-INF/native-image/org.springframework.graphql/spring-graphql/reflect-config.json @@ -12,7 +12,7 @@ "allDeclaredMethods":true, "allDeclaredConstructors":true, "condition": { - "typeReachable": "org.springframework.graphql.client.AbstractGraphQlClientBuilder" + "typeReachable": "org.springframework.graphql.client.CodecDelegate" } }, { @@ -21,7 +21,25 @@ "allDeclaredMethods":true, "allDeclaredConstructors":true, "condition": { - "typeReachable": "org.springframework.graphql.server.webflux.GraphQlWebSocketHandler" + "typeReachable": "org.springframework.graphql.server.webflux.CodecDelegate" + } + }, + { + "name":"org.springframework.graphql.server.support.SerializableGraphQlRequest", + "allDeclaredFields":true, + "allDeclaredMethods":true, + "allDeclaredConstructors":true, + "condition": { + "typeReachable": "org.springframework.graphql.server.webflux.GraphQlHttpHandler" + } + }, + { + "name":"org.springframework.graphql.server.support.SerializableGraphQlRequest", + "allDeclaredFields":true, + "allDeclaredMethods":true, + "allDeclaredConstructors":true, + "condition": { + "typeReachable": "org.springframework.graphql.server.webmvc.GraphQlHttpHandler" } } ]