Netflix / Netflix/dgs-codegen

Generating code from external schemas in JARs Error

Open
#493 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
217
Forks
116
PR merge metrics
No merged PRs in 30d

Description

I get the following error when I try to follow the documentation for adding an external library:

Could not find method dgsCodegen() [my.dependency:1.3.7'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

With the following configuration:

    dependencies {
        dgsCodegen 'my.dependency:1.3.7'
    }

I believe the above configuration is in the wrong place in my build.gradle file, but am at a loss to find the correct place for it.

Thanks in advance.

Rick

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the documentation for adding an external library and the project's build.gradle dependency configuration. Reproduce the reported dgsCodegen() error, then clarify the correct placement or configuration so the documented setup works without that Gradle error.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.