Skip to content

Build failed with dependency exception #164

Description

@pierrickrouxel

On a project with internal Gradle module dependencies, the generateOpenApiDocs fails with the following message.

> Task :apps:private-api:forkedSpringBootRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':xxx:forkedSpringBootRun' (type 'JavaExecFork').
  - Gradle detected a problem with the following location: 'xxx/xxx.jar'.
    
    Reason: Task ':xxx:forkedSpringBootRun' uses this output of task ':xxx:jar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

The problem appears only on the first generation after a clean task, so the problem breaks the CI.

It seems to come from a missing dependency with the task assemble.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions