openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[REQ] Display donation notice only once.

Open saschpe opened this issue 4 years ago • 3 comments

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 avatar Mar 16 '21 11:03 saschpe

@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)

wing328 avatar Apr 21 '21 06:04 wing328

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.

lostiniceland avatar May 28 '21 16:05 lostiniceland

This is getting very tedious and it's filling our our logs. Is there any way we can turn it off?

KangoV avatar Apr 24 '24 09:04 KangoV