this project demonstrates how you would build your own jar with third party dependencies, that later can be used as external lib in other projects
code from here: https://mkyong.com/gradle/gradle-create-a-jar-file-with-dependencies/
./gradlew clean
./gradlew fatJar
then you will get your .jar
in ./build/libs/gradle-jar-test-log-1.0.jar
java -jar ./build/libs/gradle-jar-test-log-1.0.jar
you can use this gradle-jar-test-log-1.0.jar
as a dependency in
other projects