Skip to content

Conversation

scottmf
Copy link

@scottmf scottmf commented Aug 20, 2019

This allows separate projects to keep their own settings where common settings
such as spring.* or server.* don't conflict.

#17923

This allows separate projects to keep their own settings where common settings
such as spring.* or server.* don't conflict.

spring-projects#17923
@pivotal-issuemaster
Copy link

@scottmf Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@scottmf Thank you for signing the Contributor License Agreement!

@@ -61,6 +61,17 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
}
}

protected File getProjectRootFolder() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems a breaking change.
When PropertyFile of HomeFolder have a property which not exist in ProjectRootFolder, after this change the property will be invalid.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is a breaking change as you have to opt in to looking in the new location by setting that system property or environment variable.

@philwebb philwebb changed the title adding ability to set a root folder for global settings Add ability to set a root folder for global settings Dec 12, 2019
@philwebb philwebb changed the title Add ability to set a root folder for global settings Add ability to set a root folder for devtools settings Dec 12, 2019
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 12, 2019
@philwebb philwebb added this to the 2.x milestone Dec 12, 2019
@wilkinsona wilkinsona self-assigned this Jul 16, 2021
@wilkinsona wilkinsona modified the milestones: 2.x, 2.6.x Jul 16, 2021
@wilkinsona wilkinsona changed the title Add ability to set a root folder for devtools settings Use a configurable location to load global Devtools settings Jul 16, 2021
wilkinsona pushed a commit to wilkinsona/spring-boot that referenced this pull request Jul 16, 2021
This allows separate projects to keep their own settings where common
settings such as spring.* or server.* don't conflict.

See spring-projectsgh-17924
wilkinsona added a commit to wilkinsona/spring-boot that referenced this pull request Jul 16, 2021
@wilkinsona
Copy link
Member

While not a breaking change, this comment raises the question of whether we should use the user's home directory to create property sources with lower precedence than those created for the custom home directory. A benefit of this is that it would allow project-specific settings to be set in the custom location and for common settings to be set in the user's home directory. A downside is that it would then be impossible for a property in the user's home directory to be unset. I'm leaning towards keeping things simple and only using one location as in this branch. Flagging for team attention to set what everyone else thinks.

@wilkinsona wilkinsona added the for: team-attention An issue we'd like other members of the team to review label Jul 16, 2021
@wilkinsona
Copy link
Member

We discussed this today and decided not to use the default global location as a lower-precedence property source when a custom global location is configured.

@wilkinsona wilkinsona removed the for: team-attention An issue we'd like other members of the team to review label Jul 19, 2021
wilkinsona pushed a commit that referenced this pull request Jul 19, 2021
This allows separate projects to keep their own settings where common
settings such as spring.* or server.* don't conflict.

See gh-17924
@wilkinsona
Copy link
Member

@scottmf Thanks very much for your patience and for making your first contribution to Spring Boot.

@wilkinsona wilkinsona modified the milestones: 2.6.x, 2.6.0-M1 Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants