a9cd7750f4
CI / detect-changes (push) Waiting to run
CI / build (push) Waiting to run
UI v2 CI / E2E (Mocked) (push) Blocked by required conditions
UI v2 Integration CI / E2E (Integration) (push) Waiting to run
CI / unit-test (push) Blocked by required conditions
CI / test-harness (push) Waiting to run
CI / generate-e2e-matrix (push) Waiting to run
CI / e2e (push) Blocked by required conditions
CI / build-ui (push) Waiting to run
Publish docs via GitHub Pages / Deploy docs (push) Waiting to run
Release Drafter / update_release_draft (push) Waiting to run
UI v2 CI / Lint, Format & Test (push) Waiting to run
30 lines
983 B
Markdown
30 lines
983 B
Markdown
---
|
|
description: "Annotation Processor — use code generation during Conductor builds with annotation-based processing for protobuf and more."
|
|
---
|
|
# Annotation Processor
|
|
|
|
This module is strictly for code generation tasks during builds based on annotations.
|
|
Currently supports `protogen`
|
|
|
|
### Usage
|
|
|
|
This is an actual example of this module which is implemented in common/build.gradle
|
|
|
|
```groovy
|
|
task protogen(dependsOn: jar, type: JavaExec) {
|
|
classpath configurations.annotationsProcessorCodegen
|
|
main = 'com.netflix.conductor.annotationsprocessor.protogen.ProtoGenTask'
|
|
args(
|
|
"conductor.proto",
|
|
"com.netflix.conductor.proto",
|
|
"github.com/netflix/conductor/client/gogrpc/conductor/model",
|
|
"${rootDir}/grpc/src/main/proto",
|
|
"${rootDir}/grpc/src/main/java/com/netflix/conductor/grpc",
|
|
"com.netflix.conductor.grpc",
|
|
jar.archivePath,
|
|
"com.netflix.conductor.common",
|
|
)
|
|
}
|
|
```
|
|
|