Skip to content

Add SpringBootTransformer for merging Spring Boot configuration files#2093

Closed
Goooler wants to merge 1 commit into
mainfrom
g/20260708/srping-boot-transformers
Closed

Add SpringBootTransformer for merging Spring Boot configuration files#2093
Goooler wants to merge 1 commit into
mainfrom
g/20260708/srping-boot-transformers

Conversation

@Goooler

@Goooler Goooler commented Jul 8, 2026

Copy link
Copy Markdown
Member

  • CHANGELOG's "Unreleased" section has been updated, if applicable.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a dedicated SpringBootTransformer to merge Spring Boot/Spring configuration resources when producing a shadow JAR, including .imports support and relocation behavior, and documents the new transformer for end users.

Changes:

  • Introduces SpringBootTransformer that merges Spring properties-style files and line-based META-INF/spring/*.imports files, applying relocation.
  • Adds unit + functional test coverage for key merge/relocation behaviors and updates duplicate-strategy checker expectations.
  • Updates user documentation and Kotlin ABI dump to reflect the new public transformer API.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/SpringBootTransformer.kt New transformer implementing Spring Boot/Spring resource merging + relocation.
src/test/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/SpringBootTransformerTest.kt Unit tests for resource matching, merging, and relocation.
src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/SpringBootTransformerTest.kt Functional tests validating behavior in an end-to-end ShadowJar build.
src/test/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/DuplicatesStrategyCheckerTest.kt Updates expected transformer counts due to the new transformer.
docs/configuration/merging/README.md Documents how to enable and what is handled by SpringBootTransformer.
api/shadow.api ABI dump updated to include the new public transformer class.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Goooler Goooler force-pushed the g/20260708/srping-boot-transformers branch 2 times, most recently from 70b56a2 to ed8037b Compare July 8, 2026 09:20
@Goooler Goooler requested a review from Copilot July 8, 2026 09:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

@Goooler Goooler force-pushed the g/20260708/srping-boot-transformers branch from 4cb9134 to 8b19e63 Compare July 8, 2026 09:30
@Goooler Goooler requested a review from Copilot July 8, 2026 09:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

@Goooler Goooler force-pushed the g/20260708/srping-boot-transformers branch from 8b19e63 to 35d995d Compare July 8, 2026 09:40
@Goooler Goooler force-pushed the g/20260708/srping-boot-transformers branch from 35d995d to ac22aa1 Compare July 8, 2026 09:41
@Goooler Goooler closed this Jul 8, 2026
@Goooler Goooler deleted the g/20260708/srping-boot-transformers branch July 8, 2026 10:32
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.

2 participants