Skip to content

This project demonstrates how to use gradle to build project into .jar that can be used as external library in other java projects

Notifications You must be signed in to change notification settings

pavlobu/gradle-jar-test-log

Repository files navigation

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/

how to build

./gradlew clean
./gradlew fatJar

then you will get your .jar in ./build/libs/gradle-jar-test-log-1.0.jar

how to run (after build)

java -jar ./build/libs/gradle-jar-test-log-1.0.jar

use as external lib in other project

you can use this gradle-jar-test-log-1.0.jar as a dependency in other projects

About

This project demonstrates how to use gradle to build project into .jar that can be used as external library in other java projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages