Home

Awesome

Vert.x Codegen Gradle Plugin for Java projects

A Gradle plugin to facilitate the codegen usage for Vert.x Java projects

CircleCI LICENSE GradlePluginPortal

Why is this plugin helpful

This plugin focus on configuring your gradle project to be ready for Vert.x Service-Proxy usage. It applies the configuration needed for CodeGen API

What the plugin does behind the scene

NOTE:The plugin will only be executed if the java plugin was already applied. It will not forcefully apply any plugin behind the scenes.

Configuration example

plugins {
	id 'java'
	id 'io.dotinc.vertx-codegen-plugin' version 'x.y.z' // (1)
}
repositories {
    mavenCentral()
}
codeGen {
	vertxVersion = 'a.b.c' // (2)
	generatedDirs = "src/main/generated"
	generationPath = "proxy"
}

(1) Replace x.y.z with one of the plugin versions available on the Gradle Plugin Portal

(2) Replace a.b.c with one of the vert.x library versions available on Maven Central Repository

Configuration

OptionsDescriptionDefault value
vertxVersionThe vert.x library version3.8.4
generatedDirsThe path to the generated java classes. The path is relative to the project root"src/main/generated"
generationPathThe specific path to the generated java class"proxy"
NOTE:Full path to generated proxy classes will be ${generatedDirs}/${generationPath}
The vertxVersion config will be overridden with io.vertx:vertx-core version if it was already included in build.gradle file

The default values can also be found in src/main/groovy/io/dotinc/gradle/CodeGenPluginExtension.groovy

Contributing

Author

Vlad Bulimac (buli.vlad@gmail.com)