Branch: master
Find file History
Latest commit 5fd3ba4 Jan 19, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
gradle/wrapper Update vert.x version to 3.4.2 Jun 18, 2017
src/main/java/io/vertx/example Gradle sample rework Nov 17, 2015
README.adoc Update to 3.6.2 Jan 19, 2019
build.gradle Update to 3.6.2 Jan 19, 2019
gradlew Update vert.x version to 3.4.2 Jun 18, 2017
gradlew.bat update gradle wrapper version Mar 5, 2017
settings.gradle Gradle sample rework Nov 17, 2015

README.adoc

Vert.x 3.1 Simplest Gradle project

This project shows a very simple hello world Vert.x 3.1 project using Gradle, which has a simple HTTP server which simply returns "Hello World!" to every request.

In this example Vert.x is used embedded. I.e. we use the Vert.x APIs directly in our own classes rather than deploying the code in verticles.

You can run or debug the example in your IDE by just right clicking the main class and run as.. or debug as…​

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

To build the "fat jar"

./gradlew shadowJar

Because the application plugin is being used, you may directly run the application:

./gradlew run

You may also run the fat jar as a standalone runnable jar:

java -jar build/libs/gradle-simplest-3.6.2-fat.jar

(You can take that jar and run it anywhere there is a Java 8+ JDK. It contains all the dependencies it needs so you don’t need to install Vert.x on the target machine).

Now point your browser at http://localhost:8080