springdoc-openapi-gradle-plugin icon indicating copy to clipboard operation
springdoc-openapi-gradle-plugin copied to clipboard

Plugin fails in gradle 8.1 with :forkedSpringBootRun

Open EAlf91 opened this issue 1 year ago • 2 comments

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 https://github.com/springdoc/springdoc-openapi-gradle-plugin/issues/102#issuecomment-1686337972

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
            

EAlf91 avatar Aug 23 '23 07:08 EAlf91

For me, the workaround mentioned above did not work - I had to add dependsOn manually thanks to @rivancic https://github.com/kkocel/openapigradlerepro/pull/1

kkocel avatar Aug 30 '23 09:08 kkocel

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.

bvwidt avatar Apr 23 '24 13:04 bvwidt

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

hosamaly avatar Jun 11 '24 22:06 hosamaly

@EAlf91,

#142 should fix this issue.

bnasslahsen avatar Jun 22 '24 19:06 bnasslahsen