diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle b/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle index 6a10c7c13d..771a532894 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle @@ -199,12 +199,18 @@ publishing.publications.withType(MavenPublication) { transformer(implementation: 'org.apache.maven.plugins.shade.resource.AppendingTransformer') { delegate.resource('META-INF/spring.handlers') } - transformer(implementation: 'org.springframework.boot.maven.PropertiesMergingResourceTransformer') { - delegate.resource('META-INF/spring.factories') - } transformer(implementation: 'org.apache.maven.plugins.shade.resource.AppendingTransformer') { delegate.resource('META-INF/spring.schemas') } + transformer(implementation: 'org.apache.maven.plugins.shade.resource.AppendingTransformer') { + delegate.resource('META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports') + } + transformer(implementation: 'org.apache.maven.plugins.shade.resource.AppendingTransformer') { + delegate.resource('META-INF/spring/org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration.imports') + } + transformer(implementation: 'org.springframework.boot.maven.PropertiesMergingResourceTransformer') { + delegate.resource('META-INF/spring.factories') + } transformer(implementation: 'org.apache.maven.plugins.shade.resource.ServicesResourceTransformer') transformer(implementation: 'org.apache.maven.plugins.shade.resource.ManifestResourceTransformer') { delegate.mainClass('${start-class}')