Welcome! This Gradle project aims to generate Vert.x Projects. Its main (only) purpose is to be the backend of http://start.vertx.io
./gradlew generateVertxProject \
-Ptype=core \
-PgroupId=com.acme \
-PartifactId=sample \
-PbuildTool=maven \
-Planguage=java \
-PvertxVersion=3.5.3 \
-PvertxDependencies=vertx-web,vertx-config \
-ParchiveFormat=zip| Name | Description | Default Value |
|---|---|---|
|
The type of project to generate |
|
|
The project groupId |
|
|
The project artifactId |
|
|
The tool to use to build the project (maven or gradle) |
|
|
The language to use in the project (java or kotlin) |
|
|
The version of vertx to use |
|
|
A coma separated list of vertx artifactId |
|
|
The final archive format (zip, tar, tar.gz, tar.bz) |
|
Note: The default values are listed in generator/build.gradle.kts
-
generateVertxProject: the default tasks acts as Gradle entryPoint.-
DependsOn:
assembleVertxProject,projectFiles,buildToolFilesandconfigFiles
-
-
assembleVertxProject: Archive the files generated on based on thearchiveFormatproperty.-
DependsOn:
zip,tar
-
-
projectFiles: Generates the project source files-
DependsOn:
mainSources,mainResources,testSources,testResources
-
-
buildToolFiles: Generates the Maven/Gradle Wrapper and project files-
DependsOn:
maven,gradle
-
-
configFiles: Generates the project configuration files (like .gitignore, .editorconfig, etc.)-
DependsOn:
dotFiles
-
To add a new project type named my-type:
-
Create a
generator/projects/my-typefolder -
You can use plain files (they will be copied) or Freemarker templates.
-
The project must provide a Java and Kotlin flavor
-
The project must use the default
io.vertx.starterpackage root name -
The project must pass the
testdefined in thetestproject -
Run
./gradlew travispour update the project configuration matrix