Gradle Plugin
Registers the woguValidate task and wires it into build once the java plugin is present.
The Gradle plugin isn't published to the Gradle Plugin Portal yet. Build and install it from source into your local Maven repository, as shown below.
Installation
Build the plugin locally and publish it to mavenLocal():
git clone https://github.com/vikas0686/wogu.git
cd wogu
mvn clean install
cd wogu-gradle-plugin
./gradlew publishToMavenLocalThen add mavenLocal() to your project's plugin repositories, and apply the plugin:
plugins {
id("io.github.vikas0686.wogu") version "0.1.0"
}Configuration
Applying the plugin registers woguValidate. Once the java plugin is applied in the same project, WoGu wires woguValidate into build automatically — no additional task dependency configuration is needed.
Usage
Run your build as usual, or run the validation task directly:
$ gradle build
> Task :woguValidate
Scanning project...
✓ Found 1 workflow class
Running Rules...
✗ WG001 UUID.randomUUID() inside Workflow
----------------------------------------
1 ERROR
Build FAILED
HTML Report
build/reports/wogu/index.htmlA build with violations fails with a non-zero exit code and writes the report to build/reports/wogu/index.html.
Example
A minimal project with the Temporal SDK and the WoGu plugin:
plugins {
java
id("io.github.vikas0686.wogu") version "0.1.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation("io.temporal:temporal-sdk:1.25.1")
}Need Maven instead? View the Maven Plugin, or open an issue on GitHub.