Skip to content

The spring-boot-gradle-plugin does not delegate system properties to the spring boot application #593

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

Closed
holgerstolzenberg opened this issue Mar 27, 2014 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@holgerstolzenberg
Copy link

I tried to run a spring boot application with an external configuration file via gradle. The following command illustrates that:

gradle bootRun -Pspring.config.location=/etc/application.properties

The application fails to start because the properties file could not be located and so no Environment is created. This also causes trouble when trying to run the app from IDE with the system property configured within the launch configuration.

This is a real showstopper for me.

I have already provided a pull request for that. I haven´t used the Gradle API until now, i do not know if there are any possible side effect.

It would be great if you have a look at it.

@dsyer
Copy link
Member

dsyer commented Mar 27, 2014

Duplicates #592. (You don't need a separate issue for a pull request.)

@dsyer dsyer closed this as completed Mar 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants