Skip to content

Commit

Permalink
Deprecate micronaut openapi generator
Browse files Browse the repository at this point in the history
  • Loading branch information
altro3 committed Nov 15, 2024
1 parent 96adf2f commit e4f504c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@

import static org.openapitools.codegen.CodegenConstants.INVOKER_PACKAGE;

/**
* @deprecated WARNING! This generator is outdated. Please use the official generator for Micronaut:
* <a href="https://github.com/micronaut-projects/micronaut-openapi">micronaut-openapi</a> with the help of the plugin for
* <a href="https://github.com/micronaut-projects/micronaut-gradle-plugin">Gradle</a> and
* <a href="https://github.com/micronaut-projects/micronaut-maven-plugin">Maven</a>.
*/
@SuppressWarnings("removal")
@Deprecated(forRemoval = true)
public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen implements BeanValidationFeatures, OptionalFeatures {
public static final String OPT_TITLE = "title";
public static final String OPT_BUILD = "build";
Expand Down Expand Up @@ -712,4 +720,22 @@ public void setSerializationLibrary(final String serializationLibrary) {
throw new RuntimeException(sb.toString());
}
}

@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("# WARNING! This generator is outdated. Please use the official generator for #");
System.out.println("# Micronaut: https://github.com/micronaut-projects/micronaut-openapi with the #");
System.out.println("# help of the plugin for Gradle #");
System.out.println("# (https://github.com/micronaut-projects/micronaut-gradle-plugin) and Maven #");
System.out.println("# (https://github.com/micronaut-projects/micronaut-maven-plugin). #");
System.out.println("# #");
System.out.println("# Supported generators for micronaut client / server side, java and kotlin #");
System.out.println("# languages. #");
System.out.println("################################################################################");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
import org.openapitools.codegen.meta.GeneratorMetadata;
import org.openapitools.codegen.meta.Stability;


/**
* @deprecated WARNING! This generator is outdated. Please use the official generator for Micronaut:
* <a href="https://github.com/micronaut-projects/micronaut-openapi">micronaut-openapi</a> with the help of the plugin for
* <a href="https://github.com/micronaut-projects/micronaut-gradle-plugin">Gradle</a> and
* <a href="https://github.com/micronaut-projects/micronaut-maven-plugin">Maven</a>.
*/
@SuppressWarnings("removal")
@Deprecated(forRemoval = true)
public class JavaMicronautClientCodegen extends JavaMicronautAbstractCodegen {

public static final String OPT_CONFIGURE_AUTH = "configureAuth";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
import java.util.List;
import java.util.stream.Collectors;


/**
* @deprecated WARNING! This generator is outdated. Please use the official generator for Micronaut:
* <a href="https://github.com/micronaut-projects/micronaut-openapi">micronaut-openapi</a> with the help of the plugin for
* <a href="https://github.com/micronaut-projects/micronaut-gradle-plugin">Gradle</a> and
* <a href="https://github.com/micronaut-projects/micronaut-maven-plugin">Maven</a>.
*/
@SuppressWarnings("removal")
@Deprecated(forRemoval = true)
public class JavaMicronautServerCodegen extends JavaMicronautAbstractCodegen {
public static final String OPT_CONTROLLER_PACKAGE = "controllerPackage";
public static final String OPT_GENERATE_CONTROLLER_FROM_EXAMPLES = "generateControllerFromExamples";
Expand Down

0 comments on commit e4f504c

Please # to comment.