Replies: 2 comments
-
|
using --debug I did track down part of the issue. Gradle was not correctly handling a cache issue and was not actually having dgsCodegen update before execution. After wiping all local gradle files/caches, and doing a fresh clone of the repository dgsCodegen does generate the per the directions: https://netflix.github.io/dgs/generating-code-from-schema/#generating-code-from-external-schemas-in-jars However, I effectively still have the problem with package conflicts, since the generated model in the parent project uses a different package names. I have yet to solve the issue of multiple libraries with dgsCodegen and dgsFramework in a single parent project. Tim |
Beta Was this translation helpful? Give feedback.
-
|
My final solution works. Kind of a hack, but it does work. In my build.gradle script I then have the following. generateJava { task fixClassPackage { tasks.named('fixClassPackage') { dependsOn('generateJava') } |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem: To have a project include the schema files and the associated class files from a library project. Is this possible?
Background:
gradlew subproject:clean subproject:generateJava --infoI do not see the expected scanning of the dependent library.Beta Was this translation helpful? Give feedback.
All reactions