Include auto-configuration and management import files in parent POM

Update the `maven-shade-plugin` configuration to include transformation
of the new `AutoConfiguration.imports` and
`ManagementContextConfiguration.imports` files.

Fixes gh-31316
pull/31463/head
Phillip Webb 2 years ago
parent 961b979d6e
commit 7e2b325b36

@ -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}')

Loading…
Cancel
Save