Skip to content

compatibility with Spring Boot Gradle Plugin 3.x ? #173

@sullis

Description

@sullis

I have a Gradle project that uses:

spring-boot-gradle-plugin version 3.3.13
springdoc-openapi-gradle-plugin 1.9.0

Gradle version: 8.7

I am seeing a build failure:

* What went wrong:
Some problems were found with the configuration of task ':foobar-openapi:forkedSpringBootRun' (type 'JavaExecFork').
  - Gradle detected a problem with the following location: '/Users/helloworld/code/foobar/foobar-reporting-public-api/build/libs/foobar-reporting-public-api.jar'.
    
    Reason: Task ':foobar-openapi:forkedSpringBootRun' uses this output of task ':foobar-reporting-public-api:jar' 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 ':foobar-reporting-public-api:jar' as an input of ':foobar-openapi:forkedSpringBootRun'.
      2. Declare an explicit dependency on ':foobar-reporting-public-api:jar' from ':foobar-openapi:forkedSpringBootRun' using Task#dependsOn.
      3. Declare an explicit dependency on ':foobar-reporting-public-api:jar' from ':foobar-openapi:forkedSpringBootRun' using Task#mustRunAfter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions