mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
[kotlin-spring] Fix gradle build failure when generated with interfaceOnly=true (#18809)
* Fix kotlin-spring not building when `interfaceOnly=true` Fixes #18803 * Regenerate fixed kotlin-spring samples * Include sample kotlin-springboot-request-cookie in CI build check * Apply suggestions from code review Co-authored-by: Stefan Koppier <stefan.koppier@outlook.com> --------- Co-authored-by: Stefan Koppier <stefan.koppier@outlook.com>
This commit is contained in:
parent
66126a8ae4
commit
e2258fb790
@ -28,6 +28,7 @@ jobs:
|
||||
# server
|
||||
- samples/server/petstore/kotlin-springboot-3
|
||||
- samples/server/petstore/kotlin-springboot-request
|
||||
- samples/server/petstore/kotlin-springboot-request-cookie
|
||||
- samples/server/petstore/kotlin-server/javalin
|
||||
# comment out due to gradle build failure
|
||||
# - samples/server/petstore/kotlin-spring-default/
|
||||
|
@ -13,6 +13,12 @@ tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "17"
|
||||
}
|
||||
|
||||
{{#interfaceOnly}}
|
||||
tasks.bootJar {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
{{/interfaceOnly}}
|
||||
plugins {
|
||||
val kotlinVersion = "1.7.10"
|
||||
id("org.jetbrains.kotlin.jvm") version kotlinVersion
|
||||
|
@ -20,6 +20,12 @@ tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
}
|
||||
|
||||
{{#interfaceOnly}}
|
||||
tasks.bootJar {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
{{/interfaceOnly}}
|
||||
plugins {
|
||||
val kotlinVersion = "1.6.21"
|
||||
id("org.jetbrains.kotlin.jvm") version kotlinVersion
|
||||
|
@ -13,6 +13,10 @@ tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "17"
|
||||
}
|
||||
|
||||
tasks.bootJar {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
plugins {
|
||||
val kotlinVersion = "1.7.10"
|
||||
id("org.jetbrains.kotlin.jvm") version kotlinVersion
|
||||
|
@ -13,6 +13,10 @@ tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "17"
|
||||
}
|
||||
|
||||
tasks.bootJar {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
plugins {
|
||||
val kotlinVersion = "1.7.10"
|
||||
id("org.jetbrains.kotlin.jvm") version kotlinVersion
|
||||
|
Loading…
x
Reference in New Issue
Block a user