Skip to content
This repository has been archived by the owner. It is now read-only.
Gradle plugin for processing Avro files for Gora. Deprecated: Now merged into Apache Gora Git : https://github.com/apache/gora
Groovy Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/simple
gradle/wrapper
src
.gitignore
.travis.yml
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat

README.md

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
You can’t perform that action at this time.