Open SarangKanabargi opened 3 years ago
any update on this ?
@wing328 can you help understand if this is fixed or being worked on as part of another issue
We released v5.2.0 last week. Can you please give it a try to see if you're still experiencing the same issue?
openApiGenerate tasks works fine with version 5.1.1 and 5.2.0 on Gradle 7+ openApiValidate still has the same problem with version 5.1.1 and 5.2.0 on Gradle 7+
Below is the error for openApiValidate
FAILURE: Build failed with an exception.
What went wrong: Some problems were found with the configuration of task ':customer-api:openApiValidate' (type 'ValidateTask').
Reason: Properties of type 'org.gradle.api.provider.Property' are already mutable.
Possible solution: Remove the 'setInputSpec' method.
Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#mutable_type_with_setter for more details about this problem.
Reason: Properties of type 'org.gradle.api.provider.Property' are already mutable.
Possible solution: Remove the 'setRecommend' method.
Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#mutable_type_with_setter for more details about this problem.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 231ms 7:15:21 AM: Task execution finished 'openApiValidate'.
I don't get the error with 5.2.1 release and gradle 7.0.2. I was getting it previously with 5.1.1
Bug Report Checklist
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