Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gradle - make GenerateTask properties optional (#2185)
This allows easier creation of custom `GenerateTask`. Specifically, this makes: - generateModelTests - generateModelDocumentation - generateApiTests - generateApiDocumentation - withXml optional, following the same pattern as other properties in GenerateTask. Without this change, we get `java.lang.IllegalStateException: No value has been specified for this provider.` until these properties are specified for the task, when attempting to define a custom generate task (such as one to generate API docs).
- Loading branch information
329843b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I encountered the stated problem, and solved as said in the commit header. Thank you very much for the easy-to-google problem description and solution.
329843b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed! Thanks @kahowell for writing such an excellent commit message!