diff --git a/docs/generators.md b/docs/generators.md
index d020898328d1..c921b85dd5cd 100644
--- a/docs/generators.md
+++ b/docs/generators.md
@@ -31,7 +31,7 @@ The following generators are available:
* [haskell-http-client](generators/haskell-http-client.md)
* [java](generators/java.md)
* [java-helidon-client (beta)](generators/java-helidon-client.md)
-* [java-micronaut-client (beta)](generators/java-micronaut-client.md)
+* [java-micronaut-client (deprecated)](generators/java-micronaut-client.md)
* [javascript](generators/javascript.md)
* [javascript-apollo-deprecated (deprecated)](generators/javascript-apollo-deprecated.md)
* [javascript-closure-angular (beta)](generators/javascript-closure-angular.md)
@@ -104,7 +104,7 @@ The following generators are available:
* [java-camel](generators/java-camel.md)
* [java-helidon-server (beta)](generators/java-helidon-server.md)
* [java-inflector](generators/java-inflector.md)
-* [java-micronaut-server (beta)](generators/java-micronaut-server.md)
+* [java-micronaut-server (deprecated)](generators/java-micronaut-server.md)
* [java-microprofile](generators/java-microprofile.md)
* [java-msf4j](generators/java-msf4j.md)
* [java-pkmst](generators/java-pkmst.md)
diff --git a/docs/generators/java-micronaut-client.md b/docs/generators/java-micronaut-client.md
index 1d3c4c201bd7..ca9180730eb2 100644
--- a/docs/generators/java-micronaut-client.md
+++ b/docs/generators/java-micronaut-client.md
@@ -2,6 +2,15 @@
title: Documentation for the java-micronaut-client Generator
---
+---
+**NOTE**
+
+This generator is outdated. Please use the official generator for Micronaut:
+[micronaut-openapi](https://github.com/micronaut-projects/micronaut-openapi">micronaut-openapi) with the help of the plugin for
+[Gradle](https://github.com/micronaut-projects/micronaut-gradle-plugin) and
+[Maven](https://github.com/micronaut-projects/micronaut-maven-plugin).
+---
+
## METADATA
| Property | Value | Notes |
diff --git a/docs/generators/java-micronaut-server.md b/docs/generators/java-micronaut-server.md
index a848e57254ac..d00118563c2e 100644
--- a/docs/generators/java-micronaut-server.md
+++ b/docs/generators/java-micronaut-server.md
@@ -2,6 +2,15 @@
title: Documentation for the java-micronaut-server Generator
---
+---
+**NOTE**
+
+This generator is outdated. Please use the official generator for Micronaut:
+[micronaut-openapi](https://github.com/micronaut-projects/micronaut-openapi">micronaut-openapi) with the help of the plugin for
+[Gradle](https://github.com/micronaut-projects/micronaut-gradle-plugin) and
+[Maven](https://github.com/micronaut-projects/micronaut-maven-plugin).
+---
+
## METADATA
| Property | Value | Notes |
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautAbstractCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautAbstractCodegen.java
index 8e19ac226ab5..3a375047bc09 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautAbstractCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautAbstractCodegen.java
@@ -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:
+ * micronaut-openapi with the help of the plugin for
+ * Gradle and
+ * Maven.
+ */
+@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";
@@ -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("################################################################################");
+ }
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautClientCodegen.java
index 584262056292..3ab2c28ae009 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautClientCodegen.java
@@ -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:
+ * micronaut-openapi with the help of the plugin for
+ * Gradle and
+ * Maven.
+ */
+@SuppressWarnings("removal")
+@Deprecated(forRemoval = true)
public class JavaMicronautClientCodegen extends JavaMicronautAbstractCodegen {
public static final String OPT_CONFIGURE_AUTH = "configureAuth";
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautServerCodegen.java
index 7ff2fb2a1f35..cb11b5b208da 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautServerCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautServerCodegen.java
@@ -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:
+ * micronaut-openapi with the help of the plugin for
+ * Gradle and
+ * Maven.
+ */
+@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";