Skip to content

mvysny/vaadin-boot-example-gradle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

299 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitter Gitpod Ready-to-Code

Vaadin Boot Example App using Gradle

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/

Documentation

Please see the Vaadin Boot documentation on how you run, develop and package this Vaadin-Boot-based app.

Native Mode

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:

  1. Install GraalVM as per https://graalvm.github.io/native-build-tools/latest/gradle-plugin-quickstart.html
  2. git clone https://github.com/mvysny/vaadin-boot-example-gradle
  3. git checkout native
  4. ./gradlew clean build nativeCompile -Pvaadin.productionMode
  5. cd build/native/nativeCompile/
  6. Run the vaadin-boot-example-gradle binary

DevContainer

To open this project in IDEA+Devcontainer:

  1. Download and install JetBrains Gateway
  2. Make sure Docker is installed on your machine
  3. Run JetBrains Gateway, then click "Dev Containers"/"New Dev Container"
  4. Select Docker, Intellij IDEA, and use this git repository: https://github.com/mvysny/vaadin-boot-example-gradle, the master branch, with automatic detection of devcontainer config file.
  5. Sit back and relax, this will take some time.
  6. Once IDEA opens, run the app by running the Main class
  7. Open your browser and point it towards http://localhost:8080

About

Vaadin with Embedded Jetty using Gradle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published