OpenAPITools / OpenAPITools/openapi-generator
[BUG] Gradle 7, Kotlin build script - mutable type with setter
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- [Y] Have you provided a full/minimal spec to reproduce the issue?
- [Y] Have you validated the input using an OpenAPI validator (example)?
- [Y] Have you tested with the latest master to confirm the issue still exists?
- [Y] Have you searched for related issues/PRs?
- [Y] What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Gradle open api generator plugin using Kotlin build script is broken with the gradle 7 upgrade. Gradle 7 has new validation rules on mutable type with setters and this breaks existing kotlin build scripts
openapi-generator version
5.1.0
OpenAPI declaration file content or url
petstore.yaml
Generation Details
Steps to reproduce
Run openApiValidate task
Related issues/PRs
Suggest a fix
https://docs.gradle.org/7.0.2/userguide/validation_problems.html#mutable_type_with_setter
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the openApiValidate task with the Kotlin build script and petstore.yaml under Gradle 7. Read Gradle's mutable type with setter validation guidance and identify the existing build-script declaration that triggers it. Done means the task runs without the Gradle validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100