README.adoc

Fatjar examples

Here you will find examples showing Vert.x fatjar in action.

HTTP/2 fatjar

An HTTP/2 server fatjar using Boring SSL engine and embedding the server key/certificates in pem format.

The pom.xml uses the Maven shade plugin to assemble the application and all it’s dependencies into a single "fat" jar.

To build with Maven

mvn package

To run the fat jar:

java -jar target/http2-fatjar-3.3.3.jar

The build.gradle uses the Gradle shadowJar plugin to assemble the application and all it’s dependencies into a single "fat" jar.

To build with Gradle

./gradlew shadowJar

To run the fat jar:

java -jar build/libs/http2-fatjar-3.3.3-all.jar
Note
embedding the key in the jar is a discouraged practice - it is done purposely to keep the example simple

Ruby fatjar

A Ruby verticle starting an HTTP server running in a fatjar.

The pom.xml uses the Maven shade plugin to assemble the application and all it’s dependencies into a single "fat" jar.

To build with Maven

mvn package

To run the fat jar:

java -jar target/ruby-fatjar-3.3.3.jar.jar

The build.gradle uses the Gradle shadowJar plugin to assemble the application and all it’s dependencies into a single "fat" jar.

To build with Gradle

./gradlew shadowJar

To run the fat jar:

java -jar build/libs/ruby-fatjar-3.3.3-all.jar