Ensure that the -parameters compiler flag is included in boot applications built with Gradle#9839
Ensure that the -parameters compiler flag is included in boot applications built with Gradle#9839kashike wants to merge 1 commit intospring-projects:masterfrom kashike:feature/gca-parameters
-parameters compiler flag is included in boot applications built with Gradle#9839Conversation
|
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