tree: ff12d9f7b1a2aefd5fbddace0703acebcea80633 [path history] [tgz]
  1. examples/
  2. gradle/
  3. src/
  4. .gitignore
  5. build.gradle
  6. gradle.properties
  7. gradlew
  8. gradlew.bat
  9. README.md
gora-gradle-plugin/README.md

gora-gradle-plugin

Gradle plugin for processing Avro files for Gora

Overview

Generate Apache Gora java types from an Apache Avro descriptor (.avsc files). This plugin will delegate to GoraCompiler all schema read and file generation.

Configuration

Configure the plugin in your project as follows:

buildscript {
  repositories {
    jcenter()
  }
  dependencies {
    classpath "org.apache.gora.gradle:gora-gradle-plugin:0.6"
  }
}

apply plugin: "org.apache.gora"

dependencies {
    compile "org.apache.gora:gora-core:0.4"
}

Usage in your project

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

Build this plugin

If you want to build this plugin from a Git checkout, please use Gradle Wrapper :

./gradlew clean build publishToMavenLocal