=======
This plugin provides task for generating hollow consumer api, that is described here
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 recursiveapiClassName- class name for your api implementationapiPackageName- target package in your project for api-related sources
launch task:
gradle generateHollowConsumerApi