Skip to content
Vert.x + Kotlin example.
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Fix Gradle build scripts Feb 18, 2017
src/main/java/net/gouline/vertxexample Vert.x 3.4.0 Beta1 Feb 19, 2017
.gitignore Fix Gradle build scripts Feb 18, 2017 Update Aug 2, 2016
Procfile Application commit Aug 2, 2016 Application commit Aug 2, 2016
build.gradle Upgrade to production Kotlin 1.1 Mar 2, 2017
gradlew Fix Gradle build scripts Feb 18, 2017
gradlew.bat Fix Gradle build scripts Feb 18, 2017
settings.gradle Fix Gradle build scripts Feb 18, 2017

Vert.x Kotlin Example

Basic JSON API written in Kotlin to demonstrate how it can be used with Vert.x.

This project is built on Gradle and is ready to be deployed on Heroku, hence it combines parts of the following examples:


The most convenient way to run the project during development is as follows:

./gradlew run

That way, any changes to the classes will be picked up and re-deployed automatically.


The application can either be deployed manually (with a jar file) or to Heroku.


You can generate a single "shadow jar" (more on that here) as follows:

./gradlew shadowJar

The jar file can now be retrieved from ./build/libs/app-shadow.jar and deployed onto your preferred platform.


This project includes a custom Procfile to simplify deployment to Heroku, however you would need to place the contents of this example into a separate Git repository first (because the global Procfile in the root directory points to the heroku-example).

Once in your new Git repository, install the Heroku Toolbelt and issue the following:

heroku login
heroku create
git push heroku master

Note: All your changes must be committed to Git before issuing the last command.

You can’t perform that action at this time.