Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Playacem/javalin-gradle-shadowjar-example

Repository files navigation

Javalin Gradle ShadowJar Example

This example has been moved to the official javalin/javalin-samples repo. This repository will be archived.

This project demonstrates how to create a shadow jar, also known as fat jar or uber jar with the Javalin library as an example.

Requirements

  • Java 17
  • Gradle 8 (provided by the Gradle Wrapper ./gradlew)
  • Gradle Shadow Plugin

Creating a shadow jar

Run ./gradlew shadowJar. The resulting jar file app/build/libs/app-all.jar can now be run with java -jar app/build/libs/app-all.jar when inside the default working directory.

./gradlew shadowJar
cd app/build/libs
java -jar app-all.jar

About

Gradle 8 + Java 17 + Javalin demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published