question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Release com.kobylynskyi.graphql.codegen.model.graphql as a separate artifact

See original GitHub issue

Is your feature request related to a problem? Please describe. Our project consists of three sub-projects:

  • foo-api
  • foo-client
  • foo-service

The generator is run in the foo-service project, which builds the models for the foo-api project. foo-client performs the serialization and makes the http requests for service-to-service communication. To keep the projects lightweight, we only want to include the necessary client dependencies in the api and client projects rather than the full code-generator dependency.

Describe the solution you’d like The package com.kobylynskyi.graphql.codegen.model.graphql to be split out into its own project and released separately alongside future builds of the project. I don’t really have a recommendation or expectation for naming of this new project.

Describe alternatives you’ve considered We implemented the proposed fix locally in our project and included our temporary solution as an api dependency in the foo-api and foo-client projects and everything works as we would expect.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
dspencebcommented, Mar 10, 2021

I agree that this solution is a bit better than what we currently have, but I feel having any dependency is somewhat of a smell. Could these classes appear as part of the “generated” pool of classes? This could eliminate the need to depend on anything outside and I think would be the lightest weight solution by far.

0reactions
kobylynskyicommented, Apr 6, 2021

5.0.0 was released. graphql-java and other libraries are now excluded from the classpath of graphql-java-codegen so please try upgrading graphql-java-codegen to 5.0.0. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

graphql-java-codegen : 4.1.2 - io.github.kobylynskyi
GraphQL Java CodeGen - Java Code Generator based on GraphQL schema.
Read more >
GraphQL Codegen Gradle plugin
Different configurations for graphql schemas; Convert generated Java classes to ... plugins { id "io.github.kobylynskyi.graphql.codegen" version "5.5.0" }.
Read more >
io.github.kobylynskyi - Maven Repository
io.github.kobylynskyi » graphql-codegen-maven-pluginMIT. Provides a goal for generating Java code based on GraphQL schema. Last Release on Sep 11, 2022 ...
Read more >
SDL as an Artifact: Codefirst Schemas and GraphQL Nexus
Schema-first (SDL) development is common in the JS ecosystem, yet isn't in most other languages. Why? What if we challenged this 'best ...
Read more >
GraphQL QueryResolver is giving ambiguity error
<customTypesMapping> <Process>com..schema.model. ... https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins/maven.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found