I tested it with the following configuration and was able to get it to work. By “work”, I mean the resultant files were correctly concatenated.
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
shadowJar {
transform(ServiceFileTransformer) {
path = ‘META-INF’
include ‘spring.*’
}
}