Skip to content

Make use of spring-boot.version property in Spring Boot dependencies. #4873

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

Conversation

odrotbohm
Copy link
Member

By using the property in Spring Boot dependencies' pom.xml, even projects
that use the Spring Boot starter parent pom transitively can tweak the
version of the dependencies independently from the parent pom.

That might sound counterintuitive at first but image a project setup with
a company wide parent pom that uses Boot's as parent itself but only gets
released ocassionally (i.e. maybe per Boot generation 1.2, 1.3) etc. If
that's in place, the leaf projects cannot upgrade to a newer Spring Boot
version at all due to the way handles imports in
sections [0].

That change allows users to st the spring-boot.version property and thus
let Maven import the spring-boot-dependencies in the potentially newer
version so that the dependency upgrades can be pulled in even if the
reference to the parent isn't updated.

[0] https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

By using the property in Spring Boot dependencies' pom.xml, even projects
that use the Spring Boot starter parent pom transitively can tweak the
version of the dependencies independently from the parent pom.

That might sound counterintuitive at first but image a project setup with
a company wide parent pom that uses Boot's as parent itself but only gets
released ocassionally (i.e. maybe per Boot generation 1.2, 1.3) etc. If
that's in place, the leaf projects cannot upgrade to a newer Spring Boot
version at all due to the way handles imports in <dependencyManagement />
sections [0].

That change allows users to st the spring-boot.version property and thus
let Maven import the spring-boot-dependencies in the potentially newer
version so that the dependency upgrades can be pulled in even if the
reference to the parent isn't updated.

[0] https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 4, 2016
@dsyer dsyer added this to the 1.3.2 milestone Jan 4, 2016
@dsyer dsyer added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 4, 2016
@philwebb philwebb removed this from the 1.3.2 milestone Jan 4, 2016
@wilkinsona
Copy link
Member

We've discussed and rejected this in the past. See #3992, for example.

@wilkinsona wilkinsona closed this Jan 4, 2016
@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed type: enhancement A general enhancement labels Jan 4, 2016
@odrotbohm
Copy link
Member Author

I commented on the other ticket, as I think this should really be reconsidered.

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

Successfully merging this pull request may close these issues.

5 participants