Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Updating graphql-spring-boot to use graphql-java:15. #461

Merged
merged 7 commits into from
Oct 2, 2020
Merged

Updating graphql-spring-boot to use graphql-java:15. #461

merged 7 commits into from
Oct 2, 2020

Conversation

setchy
Copy link
Member

@setchy setchy commented Sep 23, 2020

Updating to use graphql-java:15

Releasing graphql-spring-boot will be dependent on the release of the following dependencies

graphql-java-servlet

graphql-java-annotations

@setchy setchy mentioned this pull request Sep 23, 2020
@BlasiusSecundus
Copy link

I'm afraid, this is not so easy:) GraphQL Java 15 (https://github.com/graphql-java/graphql-java/releases/tag/v15.0) has some breaking changes as well as new features, that should be properly integrated.

The heavy lifting, I guess, is largely done in https://github.com/graphql-java-kickstart/graphql-java-tools. I see there is an aptly named branch there (https://github.com/graphql-java-kickstart/graphql-java-tools/tree/405-upgrade-to-graphql-java-15), but without commits. Perhaps @vojtapol can tell more about the status/progress of this feature.

As for the recently added GraphQL Annotations support, it is also on GraphQL Java 14 and can only be upgraded once the GraphQL Java Annotations library itself is updated.

@setchy
Copy link
Member Author

setchy commented Sep 24, 2020

@BlasiusSecundus - thanks for taking the time to reply.

Maybe I'm missing something, but locally with the updates in graphql-java-kickstart/graphql-java-servlet#270 and in this PR, all of the modules compiled, all tests passed and my GraphQL SpringBoot services (~10) functioned as expected.

As for graphql-java-tools, release 6.2.0 added graphql-java:15 support https://github.com/graphql-java-kickstart/graphql-java-tools/releases/tag/6.2.0

I did not look into GraphQL Annotations but I can take a look to see how easy that will be.

@BlasiusSecundus
Copy link

Yes, you are totally right, java-graphql-tools was already updated, I missed that.

@setchy
Copy link
Member Author

setchy commented Sep 24, 2020

If/when this graphql-java-kickstart/graphql-java-servlet#270 is merged & released, then I'll be able to update this branch for graphql-spring-boot and see the true state of the CI test results

@setchy
Copy link
Member Author

setchy commented Sep 24, 2020

Issue opened for graphql-java-annotations Enigmatis/graphql-java-annotations#259

@setchy
Copy link
Member Author

setchy commented Sep 24, 2020

Pull Request Enigmatis/graphql-java-annotations#260

@setchy
Copy link
Member Author

setchy commented Oct 2, 2020

graphql-java-annotations v8.2 has now been released, with support for graphql-java-tools-15.0

https://github.com/Enigmatis/graphql-java-annotations/releases/tag/v8.2

@setchy
Copy link
Member Author

setchy commented Oct 2, 2020

graphql-java-servlets v10.0.0 has now been released, with support for graphql-java-tools-15.0

https://github.com/graphql-java-kickstart/graphql-java-servlet/releases/tag/v10.0.0

@setchy
Copy link
Member Author

setchy commented Oct 2, 2020

@oliemansm @vojtapol - all the dependent libraries are now graphql-java-15 compatible:

Are you able to do a review of this PR and merge/release at your convenience :)

@oliemansm oliemansm added this to the 8.0.0 milestone Oct 2, 2020
@oliemansm
Copy link
Member

Thanks @setchy ! Once all checks have passed I'll merge it.

@oliemansm
Copy link
Member

@setchy Can't merge it as is unfortunately since there are failing unit tests. First glance I notice something about Scalar Long not found, which rings a bell being mentioned in the release notes of graphql-java 15.0: https://github.com/graphql-java/graphql-java/releases/tag/v15.0.

@setchy
Copy link
Member Author

setchy commented Oct 2, 2020

@setchy Can't merge it as is unfortunately since there are failing unit tests. First glance I notice something about Scalar Long not found, which rings a bell being mentioned in the release notes of graphql-java 15.0: https://github.com/graphql-java/graphql-java/releases/tag/v15.0.

thanks @oliemansm - let me look into this.

I believe I could address this in a few ways

Do you have a preference?

@oliemansm
Copy link
Member

@setchy By the looks of it that version hasn't been released to maven central yet, see graphql-java/graphql-java-extended-scalars#24. It also pulls in a lot of other scalars of which some might be conflicting (e.g. DateTime) with existing usages. While the DateTime scalar implemented by that library seems lacking functionality compared to https://github.com/donbeave/graphql-java-datetime (see also graphql-java/graphql-java-extended-scalars#7).

So considering all that and mainly the maven central sync issue I'd go with your option 2 in the end.

@setchy
Copy link
Member Author

setchy commented Oct 2, 2020

Awesome - by far the easiest path.

Should be all sorted now @oliemansm

@oliemansm oliemansm merged commit 90d5cb7 into graphql-java-kickstart:master Oct 2, 2020
@oliemansm
Copy link
Member

Thanks @setchy!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants