A demo project showing the possibility of running a Vaadin app from an
embedded Jetty, as a simple main() method. Written in Java.
Uses Vaadin Boot. Requires Java 21+.
Both the development and production modes are supported. Also, the project demoes packaging itself into a zip file containing a list of jars and a runner script. See "Packaging for production" below for more details.
Looking for Vaadin 14 Gradle version? Please see vaadin14-boot-example-gradle
Looking for Vaadin Maven version? Please see vaadin-boot-example-maven
Looking for Vaadin 23 Gradle version? Please see the v23 branch.
See the live demo at v-herd.eu/vaadin-boot-example-gradle/
Please see the Vaadin Boot documentation on how you run, develop and package this Vaadin-Boot-based app.
Alpha quality. Demoes a preliminary support for GraalVM native mode. At the moment doesn't work: Jetty #9514. See Vaadin Boot #10 and Vaadin Boot: Native for more details.
Quick steps:
- Install GraalVM as per https://graalvm.github.io/native-build-tools/latest/gradle-plugin-quickstart.html
git clone https://github.com/mvysny/vaadin-boot-example-gradlegit checkout native./gradlew clean build nativeCompile -Pvaadin.productionModecd build/native/nativeCompile/- Run the
vaadin-boot-example-gradlebinary
To open this project in IDEA+Devcontainer:
- Download and install JetBrains Gateway
- Make sure Docker is installed on your machine
- Run JetBrains Gateway, then click "Dev Containers"/"New Dev Container"
- Select Docker, Intellij IDEA, and use this git repository:
https://github.com/mvysny/vaadin-boot-example-gradle, themasterbranch, with automatic detection of devcontainer config file. - Sit back and relax, this will take some time.
- Once IDEA opens, run the app by running the Main class
- Open your browser and point it towards http://localhost:8080