-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Add example of setting system property in gradle bootRun #23578
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
Comments
Given that bootRun {
systemProperty 'name', 'value'
} It's the same as calling any other method on a task so I'm not sure that an example is warranted. Where would we stop if we added one? Perhaps there's something unusual about what you were trying to do that makes it less straightward. I can't tell, as you haven't described what you're trying to achieve beyond setting a system property. |
Sorry, I should have been clearer. I wanted to set a system property from the command line. So I need help with a Gradle incantation that makes that work. Maybe I can interpolate a String into the |
It's documented in the Maven plugin as there's no standard Maven way to do it so Boot's plugin implements something that's proprietary.
You can indeed:
You could also set it in |
I see the words in the docs:
but I didn't know that meant |
This section of the Gradle plugin user guide isn't very clear (to me, an idiot). There's a link to the Gradle docs, but no example there either. Can we have an example of how to run
gradle bootRun
with custom system properties, please?The text was updated successfully, but these errors were encountered: