Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.65 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.65 KB

Hollow-api-generator-plugin

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

Versions mapping

It's not recommended to use plugin with version that is not listed below. This rule is temporary, until the stable release comes

Plugin Hollow Java Maven
0.4.0 2.6.3 1.7 3.2.5
0.5.0 2.6.3 1.7 3.2.5
1.0.1 4.0.3 1.8 3.3.9

Usage

You can use plugin in two different configurations:

  • In case you want to have hollow consumer api classes directly in your project and VCS - just stick to the single-module configuration.
  • In case you don't want to have all this classes in your VCS - stick to the multi-module configuration.

Usage examples

Mandatory configuration properties:

  • 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

Optional properties:

  • parameterizeAllClassNames
  • useAggressiveSubstitutions
  • useBooleanFieldErgonomics
  • reservePrimaryKeyIndexForTypeWithPrimaryKey
  • useHollowPrimitiveTypes
  • useVerboseToString
  • useErgonomicShortcuts
  • usePackageGrouping
  • restrictApiToFieldType
  • classPostfix

default values for those params can be found here