From 36741033aa98a82d0d17fc9837d126714d87833e Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Wed, 11 Sep 2024 15:19:36 +0200 Subject: [PATCH] feat: add a deprecation metadata to languages no longer supported --- .../org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java b/support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java index 6f8c9a617..d087f3593 100644 --- a/support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java +++ b/support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java @@ -305,6 +305,7 @@ private void processLoaders(CamelCatalogSpec.Builder specBuilder) { "kts", CamelLoader.fromArtifact("org.apache.camel.quarkus", "camel-quarkus-kotlin-dsl") .addLanguage("kts") + .putMetadata("deprecated", "true") .putMetadata("native", "true") .putMetadata("sources-required-at-build-time", "true") .build() @@ -315,6 +316,7 @@ private void processLoaders(CamelCatalogSpec.Builder specBuilder) { "js", CamelLoader.fromArtifact("org.apache.camel.quarkus", "camel-quarkus-js-dsl") .addLanguage("js") + .putMetadata("deprecated", "true") // Guest languages are not yet supported on Mandrel in native mode. .putMetadata("native", "false") .build() @@ -344,6 +346,7 @@ private void processLoaders(CamelCatalogSpec.Builder specBuilder) { "jsh", CamelLoader.fromArtifact("org.apache.camel.quarkus", "camel-quarkus-jsh-dsl") .addLanguages("jsh") + .putMetadata("deprecated", "true") // Native mode is not yet supported due to https://github.com/apache/camel-quarkus/issues/4458. .putMetadata("native", "false") .putMetadata("sources-required-at-build-time", "true")