Skip to content

Bump kotlin to 2.4.20; as most implementations are eol... Also, as a side effect; values() will be deprecated for kotlin enums, use entries instead from 1.9 onwards - #25246

Open
dijkstrar wants to merge 99 commits into
OpenAPITools:masterfrom
dijkstrar:feature-use-kotlin-entries-for-enum
Open

dijkstrar wants to merge 99 commits into
OpenAPITools:masterfrom
dijkstrar:feature-use-kotlin-entries-for-enum

Conversation

@dijkstrar

@dijkstrar dijkstrar commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

This change proposes to merge the kotlin version within the entire repository to Kotlin 2.4.20, as the currently used kotlin versions (1.x) are end of life.

**Note, bumping the kotlin version from 1.x to 2.4.20 is a major change, and should thus be considered and handled as a breaking change!! **

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

Summary by cubic

Bumps Kotlin to 2.4.20 across the generator, templates, and regenerated samples to replace end-of-life versions, and swaps deprecated values() for entries in enum codegen with no behavioral change.

  • Updates Kotlin, the Gradle wrapper, kotlinx-coroutines, and kotlinx-serialization-json to the listed versions across templates and samples; jvm-volley also bumps the Android Gradle plugin to 8.5.2 and drops kotlin-stdlib-jdk8 for kotlin-stdlib.
  • Replaces deprecated kotlinOptions.jvmTarget with compilerOptions/JvmTarget in Gradle templates, using the kotlin { compilerOptions } block for spring-cloud.
  • Migrates the Groovy sample and template from compile/testCompile to implementation/testImplementation for Gradle 8.14.5, and bumps the shadow plugin to 8.1.1.
  • Pins kotlin-script-util to 1.8.22, drops the undefined javaslang.match.PatternsProcessor processor, reworks test compilation around K2JVMCompiler, and updates KotlinFileAssert for the new compiler API.
  • Switches values() to entries in enum fromValue/forValue methods and modernizes generated code with requireNotNull, string templates, URI, first()/isNotEmpty(), and cleaner equality checks.
  • Spring Boot and Spring Cloud templates now read kotlinVersion from a generated gradle.properties via the settings file; Spring Boot 4 uses Gradle 8.14.5, while Spring Boot 2.x templates and samples are excluded, keep their original versions and wrapper pin, and don't inherit the property.

Written for commit 8e006ac. Summary will update on new commits.

View guided diff

@dijkstrar

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

@dijkstrar dijkstrar closed this Oct 25, 2026
@wing328

wing328 commented Oct 25, 2026

Copy link
Copy Markdown
Member

@dijkstrar thanks for the PR. May I know why it's closed?

@dijkstrar

Copy link
Copy Markdown
Contributor Author

@dijkstrar thanks for the PR. May I know why it's closed?

Hi @wing328 ! I initially thought the change would be easy to implement. But upon closer inspection, I discovered that it would be a bumpy road.

I was thinking of two options.

  1. I would need to build in support for older versions of kotlin (by for example keeping track of the version of kotlin used in the generator).
  2. Or i would need to bump the kotlin versions in all of the touched projects, introducing possible other problems.

The first option would be rather cumbersome for me to implement. Option 2 would be most straightforward, and is a call I can not make on my own (and did not want to put in the work, unless it would be sure i could proceed with it ;) )

Do you have any thoughts on this?

@wing328

wing328 commented Oct 25, 2026

Copy link
Copy Markdown
Member

Or i would need to bump the kotlin versions in all of the touched projects, introducing possible other problems.

I think this is preferred as the kotlin version currently used is quite old (EOL?): https://endoflife.date/kotlin so make sense to upgrading the kotlin version in templates to 2.4.

@dijkstrar

Copy link
Copy Markdown
Contributor Author

aye, sounds like a plan; i will try to do it ;)

@dijkstrar dijkstrar reopened this Oct 25, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 143 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="samples/openapi3/client/petstore/kotlin-multiplatform/build.gradle">

<violation number="1" location="samples/openapi3/client/petstore/kotlin-multiplatform/build.gradle:21">
P1: The compiler plugin is now 2.4.20 but the serialization runtime stays at 0.12.0 and the Gradle wrapper stays at 7.2. Kotlin 2.x generates code against kotlinx-serialization 1.x APIs and expects a newer Gradle, so this build will likely fail to compile or configure. Bump `serialization_version` to a 1.x runtime and update `gradle-wrapper.properties` together with this change.</violation>
</file>

<file name="samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/build.gradle">

<violation number="1" location="samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/build.gradle:10">
P2: The Kotlin bump is not paired with a Gradle bump. `wrapper { gradleVersion = '4.9' }` is still set, and Kotlin 2.x's Gradle plugin will not run on Gradle 4.9. Raise the wrapper to a Gradle version that supports Kotlin 2.4 and switch `compile`/`testCompile` to `implementation`/`testImplementation`. Also update the Kotlin and Gradle versions in the README 'Requires' section.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50" // $kotlin_version
classpath "org.jetbrains.kotlin:kotlin-serialization:1.3.50" // $kotlin_version
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.4.20" // $kotlin_version
classpath "org.jetbrains.kotlin:kotlin-serialization:2.4.20" // $kotlin_version

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: The compiler plugin is now 2.4.20 but the serialization runtime stays at 0.12.0 and the Gradle wrapper stays at 7.2. Kotlin 2.x generates code against kotlinx-serialization 1.x APIs and expects a newer Gradle, so this build will likely fail to compile or configure. Bump serialization_version to a 1.x runtime and update gradle-wrapper.properties together with this change.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At samples/openapi3/client/petstore/kotlin-multiplatform/build.gradle, line 21:

<comment>The compiler plugin is now 2.4.20 but the serialization runtime stays at 0.12.0 and the Gradle wrapper stays at 7.2. Kotlin 2.x generates code against kotlinx-serialization 1.x APIs and expects a newer Gradle, so this build will likely fail to compile or configure. Bump `serialization_version` to a 1.x runtime and update `gradle-wrapper.properties` together with this change.</comment>

<file context>
@@ -17,8 +17,8 @@ buildscript {
-        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50" // $kotlin_version
-        classpath "org.jetbrains.kotlin:kotlin-serialization:1.3.50" // $kotlin_version
+        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.4.20" // $kotlin_version
+        classpath "org.jetbrains.kotlin:kotlin-serialization:2.4.20" // $kotlin_version
     }
 }
</file context>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 45 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread pom.xml Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 issues found across 47 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="samples/openapi3/server/petstore/kotlin-springboot/build.gradle.kts">

<violation number="1" location="samples/openapi3/server/petstore/kotlin-springboot/build.gradle.kts:24">
P2: Bumping Kotlin to 2.4.20 here, while this sample still uses Spring Boot 2.2.0.M3 and dependency-management 1.0.5, may not produce a working build. Spring Boot 2.2's BOM likely pins kotlin-stdlib to an old 1.3.x version, and the `compile` configurations need Gradle 6 or older. Please build the sample to confirm, or regenerate it from the sb2.6.7 template (`buildGradleKts.mustache`) so the Spring Boot and Kotlin versions match.</violation>
</file>

<file name="samples/openapi3/server/petstore/kotlin-springboot-reactive/build.gradle.kts">

<violation number="1" location="samples/openapi3/server/petstore/kotlin-springboot-reactive/build.gradle.kts:24">
P2: Bumping to Kotlin 2.4.20 requires a modern Gradle, but this build still uses the `compile(...)` configuration, which Gradle 7+ removed. The build will fail at configuration time on any Gradle version that supports this Kotlin version. Switch the dependency declarations to `implementation`/`testImplementation`, as the template does, or keep the Kotlin version aligned with the Gradle version in use.</violation>
</file>

<file name="samples/server/petstore/kotlin-springboot-reactive/build.gradle.kts">

<violation number="1" location="samples/server/petstore/kotlin-springboot-reactive/build.gradle.kts:24">
P2: The Kotlin plugins move to 2.4.20, but the Spring dependency-management plugin still pins kotlin-stdlib and kotlin-reflect to the Spring Boot BOM's Kotlin version, which is likely much older. Consider pinning `extra["kotlin.version"] = kotlinVersion` so the stdlib and reflect artifacts match the compiler, as the pom.xml already does.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic


plugins {
val kotlinVersion = "1.3.30"
val kotlinVersion = "2.4.20"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Bumping Kotlin to 2.4.20 here, while this sample still uses Spring Boot 2.2.0.M3 and dependency-management 1.0.5, may not produce a working build. Spring Boot 2.2's BOM likely pins kotlin-stdlib to an old 1.3.x version, and the compile configurations need Gradle 6 or older. Please build the sample to confirm, or regenerate it from the sb2.6.7 template (buildGradleKts.mustache) so the Spring Boot and Kotlin versions match.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At samples/openapi3/server/petstore/kotlin-springboot/build.gradle.kts, line 24:

<comment>Bumping Kotlin to 2.4.20 here, while this sample still uses Spring Boot 2.2.0.M3 and dependency-management 1.0.5, may not produce a working build. Spring Boot 2.2's BOM likely pins kotlin-stdlib to an old 1.3.x version, and the `compile` configurations need Gradle 6 or older. Please build the sample to confirm, or regenerate it from the sb2.6.7 template (`buildGradleKts.mustache`) so the Spring Boot and Kotlin versions match.</comment>

<file context>
@@ -21,7 +21,7 @@ tasks.withType<KotlinCompile> {
 
 plugins {
-    val kotlinVersion = "1.3.30"
+    val kotlinVersion = "2.4.20"
     id("org.jetbrains.kotlin.jvm") version kotlinVersion
     id("org.jetbrains.kotlin.plugin.jpa") version kotlinVersion
</file context>


plugins {
val kotlinVersion = "1.3.30"
val kotlinVersion = "2.4.20"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Bumping to Kotlin 2.4.20 requires a modern Gradle, but this build still uses the compile(...) configuration, which Gradle 7+ removed. The build will fail at configuration time on any Gradle version that supports this Kotlin version. Switch the dependency declarations to implementation/testImplementation, as the template does, or keep the Kotlin version aligned with the Gradle version in use.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At samples/openapi3/server/petstore/kotlin-springboot-reactive/build.gradle.kts, line 24:

<comment>Bumping to Kotlin 2.4.20 requires a modern Gradle, but this build still uses the `compile(...)` configuration, which Gradle 7+ removed. The build will fail at configuration time on any Gradle version that supports this Kotlin version. Switch the dependency declarations to `implementation`/`testImplementation`, as the template does, or keep the Kotlin version aligned with the Gradle version in use.</comment>

<file context>
@@ -21,7 +21,7 @@ tasks.withType<KotlinCompile> {
 
 plugins {
-    val kotlinVersion = "1.3.30"
+    val kotlinVersion = "2.4.20"
     id("org.jetbrains.kotlin.jvm") version kotlinVersion
     id("org.jetbrains.kotlin.plugin.jpa") version kotlinVersion
</file context>


plugins {
val kotlinVersion = "1.9.25"
val kotlinVersion = "2.4.20"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The Kotlin plugins move to 2.4.20, but the Spring dependency-management plugin still pins kotlin-stdlib and kotlin-reflect to the Spring Boot BOM's Kotlin version, which is likely much older. Consider pinning extra["kotlin.version"] = kotlinVersion so the stdlib and reflect artifacts match the compiler, as the pom.xml already does.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At samples/server/petstore/kotlin-springboot-reactive/build.gradle.kts, line 24:

<comment>The Kotlin plugins move to 2.4.20, but the Spring dependency-management plugin still pins kotlin-stdlib and kotlin-reflect to the Spring Boot BOM's Kotlin version, which is likely much older. Consider pinning `extra["kotlin.version"] = kotlinVersion` so the stdlib and reflect artifacts match the compiler, as the pom.xml already does.</comment>

<file context>
@@ -21,7 +21,7 @@ tasks.withType<KotlinCompile> {
 
 plugins {
-    val kotlinVersion = "1.9.25"
+    val kotlinVersion = "2.4.20"
     id("org.jetbrains.kotlin.jvm") version kotlinVersion
     id("org.jetbrains.kotlin.plugin.jpa") version kotlinVersion
</file context>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 existing issues remain and no new issues found across 32 files (changes from recent commits).

Requires human review: Auto-approval blocked because this review re-detected 3 unresolved issues already reported by Cubic.

View guided diff | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 existing issue remains and no new issues found across 34 files (changes from recent commits).

Requires human review: Auto-approval blocked because this review re-detected 7 unresolved issues already reported by Cubic.

View guided diff | Re-trigger cubic

@dijkstrar dijkstrar changed the title values() will be deprecated for kotlin enums, use entries instead from 1.9 onwards Bump kotlin to 2.4.20; as most implementations are eol... Also, as a side effect; values() will be deprecated for kotlin enums, use entries instead from 1.9 onwards Oct 25, 2026
@dijkstrar

Copy link
Copy Markdown
Contributor Author

Hi @wing328 , could you please review this? :) I put a lot of work in creating this PR and want the review process to get started; as constantly keeping the branch up-to-date is cumbersome...

hope to hear from you soon!

please note that one of the samples is failing, due to a 429 from maven repo's end but it should pass ;)

> Could not get resource 'https://repo1.maven.org/maven2/com/diffplug/spotless/spotless-plugin-gradle/7.2.1/spotless-plugin-gradle-7.2.1.pom'.
              > Could not GET 'https://repo1.maven.org/maven2/com/diffplug/spotless/spotless-plugin-gradle/7.2.1/spotless-plugin-gradle-7.2.1.pom'. Received status code 429 from server: Too Many Requests

@wing328

wing328 commented Nov 10, 2026

Copy link
Copy Markdown
Member

Thank you @dijkstrar

cc Kotlin technical committee as well: @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) @stefankoppier (2022/06) @e5l (2024/10)

@wing328

wing328 commented Nov 10, 2026

Copy link
Copy Markdown
Member

also cc recent top contributors to Kotlin generators: @Picazsoo @seonwooj0810 @raunak2007 @WonderCsabo

@Picazsoo

Copy link
Copy Markdown
Contributor

Note: this comment was drafted with AI help. I don't have much hands-on experience with Kotlin version compatibility. In our own projects we generally stay on the latest Kotlin, so please treat this as a question for the Kotlin committee rather than a firm objection. An opinion from someone with more hands-on experience here would be really valuable.

Thanks for sticking with this. I know how annoying it is to keep rebasing a PR of this size. Moving off the old Kotlin pins is overdue, and switching to entries is the right direction - I ran into this issue just days ago, so this is somewhat timely.

My concern is that 2.4.20 may be more than this change needs. As far as I understand, entries only requires Kotlin 1.9.0+ (values() is just soft-deprecated through an IDE inspection), so 1.9 is the real floor for the generated sources. Pinning the newest Kotlin in the build templates may add problems on top of that:

  • Published clients: generated clients are often built as-is and published as libraries. A library compiled with Kotlin 2.4 can't be consumed by projects on 1.9 or 2.2 ("compiled with an incompatible version of Kotlin"), and it pulls kotlin-stdlib 2.4.20 into every consumer.
  • Toolchain: Kotlin Gradle Plugin (KGP) 2.4.x requires Gradle 7.6.3+ and Android Gradle Plugin (AGP) 8.5.2+. That's where most of the wrapper/AGP/compilerOptions churn in this PR comes from.
  • Spring Boot: SB 3.2–3.5 manage Kotlin 1.9.25 and SB 4.0 manages 2.2.21. Overriding that puts users on an untested combination and needs the extra gradle.properties/settings plumbing.
  • Spring Boot 2: KGP 2.4 needs Gradle ≥ 7.6.3, while the SB 2.6 Gradle plugin tops out at 7.x, so CI had to drop to Gradle 7.6.4. The generated SB2 projects still ship a Gradle 8.14.5 wrapper, so the generated wrapper setup isn't tested in CI. CI also builds with -x test, so SB2 (Spring 5.3) running on Kotlin 2.4 is only verified to compile.
  • Multi-project builds: a pinned plugin version conflicts with the root build's Kotlin version.

Users can work around all of this with their own build file, but the defaults should probably be the most compatible option.

A possible alternative:

  • Kotlin 1.9.25 as the default (kotlin-client, kotlin-server jaxrs-spec, ktorm-schema, misk, vertx-server, kotlin-spring SB2/SB3). This should make most of the wrapper bumps, the compilerOptions migration, the SB3 override and the KotlinTestUtils rewrite unnecessary.
  • Kotlin 2.2.21 for Spring Boot 4.
  • Leave the templates that are already on 2.x as they are (ktor, ktor2, multiplatform, wiremock, javalin6).

If the committee prefers to go with the latest version anyway, that's fine with me. Either way, raising the minimum Kotlin for generated code is a breaking change and should be labeled and noted in the release notes.

@wing328

wing328 commented Nov 11, 2026

Copy link
Copy Markdown
Member

If the committee prefers to go with the latest version anyway, that's fine with me. Either way, raising the minimum Kotlin for generated code is a breaking change and should be labeled and noted in the release notes.

Definitely.

cc @AndreyVMarkelov who just joined the technical committee

@WonderCsabo

Copy link
Copy Markdown
Contributor

@Picazsoo Kotlin client is already on 2.4.0, so it is okay to bump it to 2.4.20 there.

@AndreyVMarkelov AndreyVMarkelov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces a Kotlin compilation error for a numeric anyOf variant when using jvm-retrofit2, gson, and generateOneOfAnyOfWrappers=true.

The generated require block contains an extra comma after the error message, resulting in invalid Kotlin syntax.

Could you remove the trailing comma and add a regression test that generates and compiles a model with anyOf: [number, string]?

@wing328

wing328 commented Nov 15, 2026

Copy link
Copy Markdown
Member

@AndreyVMarkelov thanks for reviewing the change.

@dijkstrar please have a look at the findings when you've time

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 38 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

View guided diff | Re-trigger cubic

@dijkstrar

Copy link
Copy Markdown
Contributor Author

Hi everyone, due to some off time i did not have the chance to look at your comments. First of all i want to thank you for taking the time to review these changes :)

Thanks @AndreyVMarkelov for pointing out the trailing comma, and generating a test to verify the solution compiles :) I have fixed the trailing comma, and resultantly the test passes :)

As for your comments @Picazsoo and @WonderCsabo , I am a bit in doubt as to how to continue.

  1. I have decided to not bump kotlin to 2.4.20 for the SB2 scenarios, as SB2 is already not maintained anymore, and this would introduce a too large of a breaking change.
  2. For the remainder of the scenarios, I have decided to remain at kotlin 2.4.20, as all previous kotlin implementations lower than 2.4.x are already past the end of life date, and thus require migration. Furthermore, from your discussion, it was not clear to me which versions should not migrate towards 2.4.20?

Please let me know if you have any other direct suggestions as how to continue :)

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9 issues found across 51 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/buildGradleKts.mustache">

<violation number="1" location="modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/buildGradleKts.mustache:47">
P1: The string literal on this line is never closed, so the generated `build.gradle.kts` is invalid Kotlin script and Gradle fails before the build starts. Close the quote.</violation>
</file>

<file name="samples/server/petstore/kotlin-springboot-modelMutable/build.gradle.kts">

<violation number="1" location="samples/server/petstore/kotlin-springboot-modelMutable/build.gradle.kts:39">
P1: This string literal is missing its closing quote, so `build.gradle.kts` will not parse and the sample build fails. Close the string as `"1.9.25"`.</violation>
</file>

<file name="samples/server/petstore/kotlin-springboot-reactive-without-flow/build.gradle.kts">

<violation number="1" location="samples/server/petstore/kotlin-springboot-reactive-without-flow/build.gradle.kts:39">
P1: The string literal is missing its closing quote, so this build script won't parse and the sb2 sample won't build. Close it: `extra["kotlin.version"] = "1.9.25"`.</violation>
</file>

<file name="samples/server/petstore/kotlin-spring-cloud/build.gradle.kts">

<violation number="1" location="samples/server/petstore/kotlin-spring-cloud/build.gradle.kts:40">
P1: This line has an unterminated string literal, so the Gradle build script will not compile. Close the string with a quote: `extra["kotlin.version"] = "1.9.25"`.</violation>
</file>

<file name="samples/server/petstore/kotlin-springboot-x-kotlin-implements/build.gradle.kts">

<violation number="1" location="samples/server/petstore/kotlin-springboot-x-kotlin-implements/build.gradle.kts:43">
P1: The string literal is never closed, so this build script will not parse. Close the quote: `extra["kotlin.version"] = "1.9.25"`.</violation>
</file>

<file name="samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/build.gradle.kts">

<violation number="1" location="samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/build.gradle.kts:39">
P1: This string literal is never closed, so the Gradle Kotlin DSL script will not parse and the sample will not build. Close the quotes on the value.</violation>
</file>

<file name="samples/server/petstore/kotlin-spring-default/build.gradle.kts">

<violation number="1" location="samples/server/petstore/kotlin-spring-default/build.gradle.kts:39">
P1: The string literal is never closed, so this Gradle Kotlin DSL script will not compile. Close the quote on the value: `extra["kotlin.version"] = "1.9.25"`.</violation>
</file>

<file name="samples/server/petstore/kotlin-springboot-source-swagger2/build.gradle.kts">

<violation number="1" location="samples/server/petstore/kotlin-springboot-source-swagger2/build.gradle.kts:39">
P1: This string literal is missing its closing quote, so the Gradle Kotlin DSL script will not parse and the sample build fails. Close the string with `"`.</violation>
</file>

<file name="samples/server/petstore/kotlin-springboot/build.gradle.kts">

<violation number="1" location="samples/server/petstore/kotlin-springboot/build.gradle.kts:39">
P1: The string literal on this line is never closed, so the Gradle build script won't parse. Add the missing closing quote.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

@Picazsoo

Copy link
Copy Markdown
Contributor

My position is that you should completely disregard all my previous comments.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants