Files
openapi-generator/samples/client/petstore/java
Edward Poot 8025aa3bfa Fix: Always set jakarta_annotation_version (#12834)
Commit 1735ab9d27 added changes to set the `jakarta_annotation_version`.

I've recently noticed that when using retrofit2 library, the project builds fine with Maven but fails with Gradle.

The build fails due to `Could not get unknown property 'jakarta_annotation_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler`.

Digging into this, in the generated `build.gradle` the `jakarta_annotation_version` is never set.
Upon closer inspection, aforementioned commit seems to indeed set it differently for the Maven build configuration than the Gradle build configuration (same for SBT configuration) for that matter.

The issue is that due to human error the `jakarta_annotation_version` line is added within the `{{#usePlayWS}}` block, meaning it won't be generated when `usePlayWS` is false, even though it should.

This commit changes this to always generate it.
2022-07-13 11:05:35 +08:00
..
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00
2022-07-10 14:58:55 +08:00