I found the answer in the gradle plugin documentation:
When enabling generation of only specific parts you either have to provide CSV list of what you particularly are generating or provide an empty string ""
to generate everything. If you provide "true"
it will be treated as a specific name of model or api you want to generate.