Consider managing versions for graphql-java-extended-scalars and graphql-java-extended-validation #41690
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
(I couldn't find any existing issue if this has been discussed in the past)
Spring Boot provides version management for
com.graphql-java:graphql-java
already.graphql-java-extended-scalars
andgraphql-java-extended-validation
are companion libraries from the same organization, and they align on major version withgraphql-java
, but not on minor version:https://github.com/graphql-java/graphql-java-extended-scalars#getting-started
https://github.com/graphql-java/graphql-java-extended-validation?tab=readme-ov-file#using
It's easy for a developer to assume they match precisely, and try to reuse the
graphql-java.version
property to select a compatible version for the-extended-
libraries. This will work if the developer is lucky (eg22.0
exists for both), but in many cases will fail (as of today, Spring Boot uses22.1
, and that version does not exist for-extended-scalars
).It's also error-prone to rely on the developer to check the value of the version provided by Spring Boot (especially across upgrades) and select the right compatible version of the
-extended-
libraries.Could these libraries be added to
spring-boot-dependencies
?The text was updated successfully, but these errors were encountered: