Skip to content

Automatically filter additional configuration metadata from Spring Boot-built archives - #51386

Merged
wilkinsona merged 1 commit into
spring-projects:mainfrom
Wanbinyu:gh-27430-filter-additional-configuration-metadata
Sep 9, 2026
Merged

wilkinsona merged 1 commit into
spring-projects:mainfrom
Wanbinyu:gh-27430-filter-additional-configuration-metadata

Conversation

@Wanbinyu

Copy link
Copy Markdown
Contributor

This updates Spring Boot's Maven and Gradle packaging support to exclude META-INF/additional-spring-configuration-metadata.json from built archives. The additional metadata has already been merged into spring-configuration-metadata.json by the annotation processor.

The loader tools filter the metadata relative to the layout's classes location, covering both jars and wars. Gradle boot archives apply the equivalent default exclusion. The documentation also shows how to configure the exclusion when building a library without either Spring Boot plugin.

Closes #27430

@Wanbinyu
Wanbinyu force-pushed the gh-27430-filter-additional-configuration-metadata branch from 3d60308 to 3744c18 Compare August 17, 2026 05:30
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue that has not yet been triaged. Contributions will not be accepted. label Aug 17, 2026
@philwebb philwebb added the for: team-meeting An issue we'd like to discuss as a team to make progress label Aug 21, 2026
@wilkinsona wilkinsona added type: enhancement A general enhancement and removed status: waiting-for-triage An issue that has not yet been triaged. Contributions will not be accepted. for: team-meeting An issue we'd like to discuss as a team to make progress labels Sep 3, 2026
@wilkinsona wilkinsona added this to the 4.x milestone Sep 3, 2026
@wilkinsona wilkinsona self-assigned this Sep 9, 2026
@wilkinsona wilkinsona modified the milestones: 4.x, 4.2.x Sep 9, 2026
@wilkinsona
wilkinsona force-pushed the gh-27430-filter-additional-configuration-metadata branch from 3744c18 to 0d223cb Compare September 9, 2026 08:55
@wilkinsona wilkinsona modified the milestones: 4.2.x, 4.2.0-M2 Sep 9, 2026
@wilkinsona
wilkinsona merged commit b91e126 into spring-projects:main Sep 9, 2026
1 check passed
@wilkinsona

Copy link
Copy Markdown
Member

Thank you, @Wanbinyu.

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.

Automatically filter additional-spring-configuration-metadata.json from Spring Boot-built archives

4 participants