Please have a look at the parent README first.
This project is a Java library and contains the Apache Avro schema files for our domain model as well as a helper method to get Serializers and Deserializers (Serde).
Java code is automatically generated into the build
folder and declared as a source set so generated Java classes
can be used by other projects implementing this project.
We use Gradle to build the library.
Please make sure to have the following technologies installed:
- Java / JDK (e.g., AdoptOpenJDK)
- Gradle
Simply build the entire multi-project from the parent directory or just the library by running:
gradle build
Based on the Avro schema files in src/main/avro
, Java sources are generated in build/generated-main-avro-java
and
automatically marked as source set.
This library is also built as part of the parent multi-project.
Please have a look at the sibling project.
For instance, a Serde (serializer and deserializer) can be initialized as follows:
Serde<SystemTrace> systemTraceSerde=
PgModelSerde.getSpecificAvroSerde(schemaRegistryUrl);