From 71a8e0afda1e2a0876d166b8dba4c7ba0fe0a5a5 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 9 Feb 2021 21:49:49 +0800 Subject: [PATCH] Add sponsorship message in C generator (#8649) * update c generator sponsorship message * add powerofcreation --- bin/configs/{other => }/c.yaml | 0 .../codegen/languages/CLibcurlClientCodegen.java | 15 +++++++++++++++ .../client/petstore/c/.openapi-generator/VERSION | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) rename bin/configs/{other => }/c.yaml (100%) diff --git a/bin/configs/other/c.yaml b/bin/configs/c.yaml similarity index 100% rename from bin/configs/other/c.yaml rename to bin/configs/c.yaml diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java index dbc59ae281c..62d1a13f9c2 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java @@ -898,4 +898,19 @@ public class CLibcurlClientCodegen extends DefaultCodegen implements CodegenConf } } } + + @Override + public void postProcess() { + System.out.println("################################################################################"); + System.out.println("# Thanks for using OpenAPI Generator. #"); + System.out.println("# Please consider donation to help us maintain this project \uD83D\uDE4F #"); + System.out.println("# https://opencollective.com/openapi_generator/donate #"); + System.out.println("# #"); + System.out.println("# This generator is contributed by Hemant Zope (https://github.com/zhemant) #"); + System.out.println("# and Niklas Werner (https://github.com/PowerOfCreation). #"); + System.out.println("# Please support their work directly \uD83D\uDE4F #"); + System.out.println("# > Hemant Zope - https://www.patreon.com/zhemant #"); + System.out.println("# > Niklas Werner - https://paypal.me/wernerdevelopment #"); + System.out.println("################################################################################"); + } } diff --git a/samples/client/petstore/c/.openapi-generator/VERSION b/samples/client/petstore/c/.openapi-generator/VERSION index 3fa3b389a57..c30f0ec2be7 100644 --- a/samples/client/petstore/c/.openapi-generator/VERSION +++ b/samples/client/petstore/c/.openapi-generator/VERSION @@ -1 +1 @@ -5.0.1-SNAPSHOT \ No newline at end of file +5.1.0-SNAPSHOT \ No newline at end of file