Skip to content

Gradle 8.1.1 task declaration problems #1911

@marcingrzejszczak

Description

@marcingrzejszczak

(3.1.x contract version) after having fixed the deprecation issues I get this one

* What went wrong:
A problem was found with the configuration of task ':copySnippets' (type 'Copy').
  - Gradle detected a problem with the following location: '/home/marcin/repo/spring-cloud-contract/samples/standalone/webclient/http-server/build/stubs/META-INF/com.example/http-server-webclient-gradle/0.0.1/mappings'.
    
    Reason: Task ':verifierStubsJar' uses this output of task ':copySnippets' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':copySnippets' as an input of ':verifierStubsJar'.
      2. Declare an explicit dependency on ':copySnippets' from ':verifierStubsJar' using Task#dependsOn.
      3. Declare an explicit dependency on ':copySnippets' from ':verifierStubsJar' using Task#mustRunAfter.
    
    Please refer to https://docs.gradle.org/8.1.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

@shanman190 😬

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions