For Maven there is an official Avro plugin to generate Java classes from Avro schemas.
However, for Gradle there exists no official plugin.
There is davidmc24/gradle-avro-plugin, but it is no longer maintained and it is looking for a maintainer.
How can I generate Java classes from Avro schemas as part of a Gradle build?
I have now created a simple Gradle task that generates the Avro Java classes.
This task can be added to any Gradle build script.