Gradle plugin for processing Avro files for Gora
Generate Apache Gora java types from an Apache Avro descriptor (.avsc files). This plugin will delegate to GoraCompiler all schema read and file generation.
Configure the plugin in your project as follows:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.dictanova.gora.gradle:gora-gradle-plugin:0.6"
}
}
apply plugin: "com.dictanova.gora"
compileGora.source = 'src/main/resources/'
compileGora.destinationDir = file("src/main/java")
dependencies {
compileGora
compile "org.apache.gora:gora-core:0.4"
}
Avro schema descriptors (.avsc) have to in the following directory :
src/main/resources/
You can generate Gora java types using compileGora directly or using build task:
$ gradle compileGora
$ gradle build
If you want to build this plugin from a Git checkout, please use Gradle Wrapper :
./gradlew clean build install