Gradle is a build automation tool for defining and running project tasks, managing dependencies, and coordinating source-generation workflows. In a schema-driven application, it connects schema files with generated Java objects and Schema Registry operations. section 3.2.6
Gradle plugins support several schema and registry tasks:
- The Schema Registry plugin tests compatibility, registers schemas, and configures compatibility. section 3.2.6
- The Avro and Protobuf plugins generate Java objects from .avsc and .proto files. section 3.2.6
- The js2p-gradle plugin generates Java code from JSON Schema files. section 3.2.6
Registering a schema
Run ./gradlew streams:registerSchemasTask from the project’s base directory. The task registers every schema declared inside the register block of streams/build.gradle, while the plugin uses Schema Registry’s REST API through SchemaRegistryClient. section 3.2.7
./gradlew streams:registerSchemasTask
Use the Gradle task listing to inspect the command that registers configured schemas. section 3.2.7
