How do I use the Gradle Shadow Plugin to merge spring.handlers and spring.schemas files of multiple Spring jar dependencies?

Should be able to do something like this.

shadowJar {

mergeServiceFiles(‘META-INF’) {

include ‘spring.*’

}

}