Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin fails in gradle 8.1 with :forkedSpringBootRun #128

Closed
EAlf91 opened this issue Aug 23, 2023 · 4 comments
Closed

Plugin fails in gradle 8.1 with :forkedSpringBootRun #128

EAlf91 opened this issue Aug 23, 2023 · 4 comments

Comments

@EAlf91
Copy link

EAlf91 commented Aug 23, 2023

I found the old issue being closed but it is not resolved yet.

Quote from the old ticket:

Unfortunately, this doesn't seem to be resolved.

Gradle version: 8.1
Plugin version: 1.7.0

This issue is still present. As some people mentioned, this workaround seems to work:

tasks {
  forkedSpringBootRun {
        doNotTrackState("See https://github.com/springdoc/springdoc-openapi-gradle-plugin/issues/102")
    }
}

Originally posted by @pcimcioch in #102 (comment)

same for me

Current Setup:

Gradle 8.1
------------------------------------------------------------

Build time:   2023-04-12 12:07:45 UTC
Revision:     40ba32cde9d6daf2b92c39376d2758909dd6b813

Kotlin:       1.8.10
Groovy:       3.0.15
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          17.0.7 (Amazon.com Inc. 17.0.7+7-LTS)
OS:           Windows 10 10.0 amd64


plugins {
    id "java"
    id "idea"
    id "org.springframework.boot" version "3.1.+"
    id "org.springdoc.openapi-gradle-plugin" version "1.7.0"
    id "io.spring.dependency-management" version "1.1.+"
    id "maven-publish"
}

The workaround did the trick for me too for now
            
@kkocel
Copy link

kkocel commented Aug 30, 2023

For me, the workaround mentioned above did not work - I had to add dependsOn manually thanks to @rivancic
kkocel/openapigradlerepro#1

@bvwidt
Copy link

bvwidt commented Apr 23, 2024

I have the same issue with springdoc-openapi 1.8.0 and Gradle 8.1.

The workaround from @kkocel has worked for me but I adapted the list of dependent tasks according to my errors.

@hosamaly
Copy link

This issue looks like a duplicate of #120. There is a suggested workaround there that I used successfully.

@bnasslahsen
Copy link
Contributor

@EAlf91,

#142 should fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants