-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Ensure that the -parameters
compiler flag is included in boot applications built with Gradle
#9839
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
Conversation
Thanks for the pull-request! I'm wondering if always applying the The @wilkinsona any suggestions? |
There are a couple of things we could do:
|
Let me know if the changes I've made are what you're looking for. |
@kashike Thanks for the update. Sorry, looks like I've created some confusion. My two suggestions were intended as two different options. We need to decide which one we prefer and just implement that one. I think I'm leaning towards 1 as it's quite flexible:
After more thought, the second suggestion may not work. If we set In summary, the first option is the best I can come up with. It'd be great to have some tests that cover the three scenarios I've listed above showing that default, additional args, and overridden args all work. We should also update the docs to mention that |
…cations built with Gradle Adds #9831
No problem, @wilkinsona. I've made some changes, which I think are what you've suggested - let me know. |
* gh-9839: Polish "Use -parameters compiler arg by default in Gradle builds" Use -parameters compiler arg by default in Gradle builds
@kashike Thank you for making your first contribution to Spring Boot. I've merged this into master. |
#9831