[REQ] Display donation notice only once.
Is your feature request related to a problem? Please describe.
Version 5.x added a donation notice in many generators that is invoked after post processing. The intention is great but it happens far too often in projects that invoke the plugin multiple times (regardless if Maven or Gradle).
Describe the solution you'd like
The notice is displayed only once per build system invocation. In other words mvn install or gradle build has the notice displayed only once.
Additional context
The following example is a medium-size Maven project. Please note that the quiet mode flag is ignored as well:
mvn --settings .mvn/settings.xml install --define skipDocumentation --define skipTests --quiet
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
@saschpe thanks for the feedback. The sponsorship message is going to be different per generator (e.g. https://github.com/OpenAPITools/openapi-generator/pull/9247)
This message is really annoying. There should be an option to disable it, since the one time proposal will probably also display it on a CI.
This is getting very tedious and it's filling our our logs. Is there any way we can turn it off?