Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
com.netflix.nebula:nebula-hollow-plugin
Advanced tools
Provides a task for generating hollow consumer api
=======
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 {
mavenCentral()
}
dependencies {
classpath "com.netflix.nebula:nebula-hollow-plugin: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 sourcesoptional values:
getterPrefix
- prefix for getter methods. Ex. _getId()
classPostfix
- postfix for classes. Ex. MovieHollow.java
usePackageGrouping
- will create Hollow artifacts separated by sub-packages: index, core, collectionsparameterizeAllClassNames
- if true, all methods which return a Hollow Object will be parameterized. This is useful when alternate implementations are desired for some types. defaults to true
useAggressiveSubstitutions
- override generated classnames for type names corresponding to any class in the java.lang package. For more details please refer to HollowCodeGenerationUtils
. defaults to true
useErgonomicShortcuts
- generates API shortcuts. For more details please refer to HollowErgonomicAPIShortcutsTest
. defaults to true
reservePrimaryKeyIndexForTypeWithPrimaryKey
- specify to only generate PrimaryKeyIndex for Types that has PrimaryKey defined. defaults to true
useHollowPrimitiveTypes
- specify to use Hollow Primitive Types instead of generating them per project. defaults to true
restrictApiToFieldType
- api code only generates get<FieldName>
with return type as per schema. defaults to true
useVerboseToString
- will implement toString()
method for hollow objects with HollowRecordStringifier().stringify(this)
. defaults to true
For more information, please refer to AbstractHollowAPIGeneratorBuilder
launch task:
gradle generateHollowConsumerApi
FAQs
Unknown package
We found that com.netflix.nebula:nebula-hollow-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.