Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

Latest commit

 

History

History
53 lines (42 loc) · 1.43 KB

README.md

File metadata and controls

53 lines (42 loc) · 1.43 KB

gora-gradle-plugin

Gradle plugin for processing Avro files for Gora

Build Status Build Status

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 "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"
}

Usage

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

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

./gradlew clean build install