rspieldenner/nebula-hollow-plugin

★ 0Forks 0JavaGitHub ↗Compare

README

=======

Hollow API Generator Nebula Plugin

This plugin provides task for generating hollow consumer api, that is described here

Usage

In order to use, add plugin dependency to your buildscript

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath "com.netflix.nebula:nebula-hollow-plugin:0.1"
    }
}

apply it

apply plugin: 'nebula.hollow'

and configure (you have to specify all the three values to work)

hollow {
    packagesToScan = ['org.example.data', 'org.example.other.data']
    apiClassName = 'MyApi'
    apiPackageName = 'org.example.consumer.api'
}

where:

  • packagesToScan - packages with your data classes, note that scan is recursive
  • apiClassName - class name for your api implementation
  • apiPackageName - target package in your project for api-related sources

launch task:

gradle generateHollowConsumerApi

Contributors

IgorPerikovrspieldennerdkoszewnik

Issues