Skip to content
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

refactor(spring): move auto-configuration registration to AutoConfiguration.imports as is recommended from Spring Boot 2.7 #470

Merged
merged 2 commits into from
Nov 28, 2022

Conversation

bednar
Copy link
Contributor

@bednar bednar commented Nov 25, 2022

Closes #468

Use META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports for registration of auto-configuration.

Proposed Changes

Auto-configuration Registration

If you have created your own auto-configurations, you should move the registration from spring.factories 
under the org.springframework.boot.autoconfigure.EnableAutoConfiguration key to a new file named 
META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports. Rather than a single
comma-separate list, each line contains the fully qualified name of an auto-configuration class. 
See [the included auto-configurations](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports) 
for an example.

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#auto-configuration-registration

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • mvn test completes successfully
  • Commit messages are conventional
  • Sign CLA (if not already signed)

…ion.imports` as is recommended from Spring Boot 2.7
@bednar bednar changed the title refactor(spring): move auto-configuration registration AutoConfiguration.imports as is recommended from Spring Boot 2.7 refactor(spring): move auto-configuration registration to AutoConfiguration.imports as is recommended from Spring Boot 2.7 Nov 25, 2022
@codecov-commenter
Copy link

Codecov Report

Base: 88.39% // Head: 88.39% // No change to project coverage 👍

Coverage data is based on head (6cb5c39) compared to base (cec6457).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #470   +/-   ##
=========================================
  Coverage     88.39%   88.39%           
  Complexity      779      779           
=========================================
  Files           172      172           
  Lines          7008     7008           
  Branches        378      378           
=========================================
  Hits           6195     6195           
  Misses          693      693           
  Partials        120      120           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bednar bednar marked this pull request as ready for review November 25, 2022 09:37
@bednar bednar merged commit 1747d29 into master Nov 28, 2022
@bednar bednar deleted the refactor-spring-autoconfiguration branch November 28, 2022 21:54
@bednar bednar added this to the 6.8.0 milestone Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replacing spring.factories auto-configuration setup with new file as stated per Spring Boot 2.7 release notes
3 participants