Skip to content

Commit 9fe888d

Browse files
committed
Cyclic gradle task dependency if build configured to include openapi specification file in the build artifact. Fixes #28
1 parent 61bebfb commit 9fe888d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dependencies {
4949
implementation("khttp:khttp:1.0.0")
5050
implementation("com.google.code.gson:gson:2.8.6")
5151
implementation("org.awaitility:awaitility-kotlin:4.0.3")
52-
implementation("com.github.psxpaul:gradle-execfork-plugin:0.1.15")
52+
implementation("com.github.psxpaul:gradle-execfork-plugin:0.2.0")
5353
implementation("org.springframework.boot:spring-boot-gradle-plugin:2.5.6")
5454

5555
testImplementation(gradleTestKit())

src/main/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGradlePlugin.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ open class OpenApiGradlePlugin : Plugin<Project> {
4242
fork.main = bootRun.mainClass.get()
4343
fork.jvmArgs = bootRun.jvmArgs
4444
fork.environment = bootRun.environment
45+
if(org.gradle.internal.jvm.Jvm.current().toString().startsWith("1.8"))
46+
fork.killDescendants = false
4547
true
4648
}
4749
}

0 commit comments

Comments
 (0)