From: https://stackoverflow.com/q/49698961/4562758
It's not immediately intuitive on how to publish a fat JAR to JitPack because the shadow docs don't have a section for JitPack and the JitPack docs don't have a section on fat jars.
All the docs say is that if you include maven-publish then they will execute the task publishToMavenLocal.
Normally a shadowJar fat jar is created via gradle shadowjar but the build command on JitPack is not configurable therefore we must modify our publishToMavenLocal to use shadowJar.