In my build.gradle file I need to add the line:
shadowJar {
mergeServiceFiles()
}
Otherwise the jar does not run properly. I wonder what this line does exactly? I use the Gradle plugin in Eclipse Luna. I create the jar on one Java project which depends on another one.
Why don't you investigate it in the code by yourself?
mergeServiceFiles
is declared exactly here and its implementation is as follows:As you can see it uses
ServiceFileTransfomer
which is defined here. From its docs: