Vert.x Starter is an open-source web application for creating Vert.x applications.
Simply click on Generate Project on the web interface to download a project archive.
If you are a CLI adept, you can use any http client (curl, httpie) to invoke the API.
curl -G https://start.vertx.io/starter.zip \
-d "groupId=com.example" \
-d "language=java" \
--output starter.zip
https://start.vertx.io/starter.{archiveFormat}
Note
|
archiveFormat can be zip , tgz , tar.gz , etc. if the project generator can handle the format, it will use the appropriate compression tool.
|
You can provide the following query parameters to customize the project:
-
Basic information for the generated project
groupId
,artifactId
-
language
:java
orkotlin
-
buildTool
:maven
orgradle
build tool -
vertxVersion
: the Vert.x version -
vertxDependencies
: a comma separated list of artifactIds of the vert.x modules -
packageName
: code package name, derived fromgroupId
andartifactId
by default -
jdkVersion
: which version of the JDK to use, defaults to11
Full example:
curl -G https://start.vertx.io/starter.zip \
-d "groupId=com.example" \
-d "artifactId=starter" \
-d "language=java" \
-d "buildTool=maven" \
-d "vertxDependencies=vertx-web,vertx-web-client"
--output starter.zip
The HTTPie equivalent:
http https://start.vertx.io/starter.zip \
groupId==com.example \
artitfactId==starter \
language==java \
buildTool==maven \
vertxDependencies==vertx-web,vertx-web-client \
-o starter.zip
The vert.x starter metadata lists all the capabilities proposed by the API. The metadata is used to build the Web UI is exposed to ease the creation of third-party clients (IDE integration, CLI, etc).
https://start.vertx.io/metadata
# Configure analytics dir
export VERTX_STARTER_ANALYTICS_DIR=target
# Build frontend first
./mvnw clean process-resources
# Run backend in redeploy mode
./mvnw compile vertx:run -Dskip.npm
Note
|
The following commands assume you have forked the project and upstream is the vert-x3/vertx-starter remote repository.
|
To release the project, proceed as follows.
First, tag the last commit in master
branch:
STARTER_VERSION=$(./mvnw org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')
git tag -f -a ${STARTER_VERSION} -m "Version ${STARTER_VERSION}"
git push upstream --tags
Close the corresponding milestone on GitHub.
Then merge the master
branch into the prod
branch:
git checkout prod
git pull
git merge master
git push
GitHub Deploy job will automatically redeploy the starter if the prod
branch build passes.
Eventually, checkout master
again and update the version:
git checkout master
./mvnw versions:set -DgenerateBackupPoms=false
git add pom.xml
git commit -s
git push upstream && git push
Vert.x Starter is Open Source software released under the Apache 2.0 license.