Publishing a JAR
The merged jar is included in a Gradle SoftwareComponent
that you can publish using your plugin of choice.
Integrating publishing with common publishing plugins is very simple, but direct access to the generated jar
file
is also available if a custom publishing solution is needed.
com.vanniktech.maven.publish
https://github.com/vanniktech/gradle-maven-publish-plugin
No configuration needed! Works right out of the box.
Custom Publishing
If you have your own custom publishing step, you can reference the generated jar
file as a property like so: