Skip to content

A quarkus project using RESTEasy reactive for non-blocking endpoints and graalVM for native executable generation.

Notifications You must be signed in to change notification settings

neogeogre/quarkus-demo

Repository files navigation

quarkus-demo

You need a java graalVM distribution:

sdk install java 22.3.r19-grl

Run the app in dev mode with:

./gradlew quarkusDev

Build the native executable with:

./gradlew clean build -Dquarkus.package.type=native

If you don't have GraalVM installed, build the native executable with a container:

./gradlew clean build -Dquarkus.package.type=native -Dquarkus.native.container-build=true

You can then run your native executable app with:

./build/quarkus-demo-1.0-SNAPSHOT-runner

Then hit an endpoint with:

curl http://localhost:8080/hello
jar generation

Build jar:

./gradlew build

It produces the quarkus-run.jar file in the build/quarkus-app/ directory. Be aware that it’s not an über-jar as the dependencies are copied into the build/quarkus-app/lib/ directory. The application is now runnable using java -jar build/quarkus-app/quarkus-run.jar. If you want to build an über-jar, execute the following command:

./gradlew build -Dquarkus.package.type=uber-jar

The application, packaged as an über-jar, is now runnable using java -jar build/*-runner.jar.

About

A quarkus project using RESTEasy reactive for non-blocking endpoints and graalVM for native executable generation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published