From 1cb89da2152655b9e6350c012a54a2754cc164c2 Mon Sep 17 00:00:00 2001 From: Bernardo Gomez Palacio Date: Thu, 25 Nov 2021 16:52:09 -0800 Subject: [PATCH] BOM now requires graphql-java-extended-validation:17.0-hibernate-validator-6.2.0.Final The folks that maintain the graphql-java-extended-validation library were kind enough to provide a version of the library that is compatible with JEE 8 and Hibernate Validator 6.2 which are compatible with Spring Boot 2.x. Note that Spring Boot 3.0 will move to JEE 9. Ref: https://github.com/graphql-java/graphql-java-extended-validation/issues/52 --- graphql-dgs-platform/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphql-dgs-platform/build.gradle.kts b/graphql-dgs-platform/build.gradle.kts index 7d607f073..5a4b7e520 100644 --- a/graphql-dgs-platform/build.gradle.kts +++ b/graphql-dgs-platform/build.gradle.kts @@ -54,6 +54,11 @@ dependencies { api("com.apollographql.federation:federation-graphql-java-support") { version { require(Versions.GRAPHQL_JAVA_FEDERATION) } } + api("com.graphql-java:graphql-java-extended-validation"){ + // The version below will work with Jakarta EE 8 + // and use Hibernate Validator 6.2. + version { require("17.0-hibernate-validator-6.2.0.Final") } + } api("com.jayway.jsonpath:json-path") { version { require("2.6.0") } }