-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle plugin - @Input and @Internal should not be apply on the same property #9059
Gradle plugin - @Input and @Internal should not be apply on the same property #9059
Conversation
Thanks for the PR but your commit (as shown in the Commits tab) is not linked to your Github account, which means this PR won't count as your contribution in https://github.com/OpenAPITools/openapi-generator/graphs/contributors. Let me know if you need help fixing it. |
Motivation: In Gradle 7.0 apply @input and @internal on property is forbidden. Before Gradle 7.0 applying both on the same property is confusing. According to the documentation: * @input: Attached to a task property to indicate that the property specifies some input value for the task. * @internal: Attached to a task property to indicate that the property is not to be taken into account for up-to-date checking
b938ce1
to
8028ea6
Compare
@wing328 |
What more is required to get this fix merged and released? I would like to get rid of warnings in my builds. |
I'm also very interested in this fix, how can I help ? |
Gradle 7 has already been released: https://docs.gradle.org/current/release-notes.html |
Meh, tried to upgrade to 7.0 and got this error/thread... |
Same for me. Currently a showstopper for our Gradle 7 migration. |
Let's get this in @wing328 |
Thanks for the PR. Quick question: after this change, users using Gradle 5.x an 6.x can still use the Gradle plug-in without issues, right? In other words, I just want to make sure this change is backward-compatible. |
This project where this diff is applied uses: |
Hello @wing328, Yes, changes include in this PR should be backward compatible. I'm obviously not able to test all Gradle versions from 5.0 to 7.0 but the default behaviour should be backward compatible. |
@vgalloy thanks for the details. I'm ok with this change. |
There will be a new release in 2 weeks. |
Hey team, any news on the new release? |
However, the following issue [1] with the OpenAPI Generator Gradle Plugin is a current showstopper, preventing us from merging this branch into 'main'. This has been fixed in [2] and merged upstream, but a new release of this Gradle Plugin is expected in roughly 2 weeks from now. [1] OpenAPITools/openapi-generator#9253 [2] OpenAPITools/openapi-generator#9059
We just updated our Gradle plugin to |
Motivation:
In Gradle 7.0 apply @input and @internal on property is forbidden.
Before Gradle 7.0 applying both on the same property is confusing. According to the documentation:
Note: Gradle 7.0 is not release yet 2021-03-24
Step to reproduce
build.gradle.kts
with the command line
./gradlew openApiGenerate
will cause