You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/01/24 08:37:19 UTC

[camel-k-runtime] branch 953/update-dsl-metadata created (now ad70a3a0)

This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a change to branch 953/update-dsl-metadata
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git


      at ad70a3a0 Ref #953: Update DSLs metadata

This branch includes the following new commits:

     new ad70a3a0 Ref #953: Update DSLs metadata

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-k-runtime] 01/01: Ref #953: Update DSLs metadata

Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch 953/update-dsl-metadata
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit ad70a3a0393842bce1f90c43dea451207eec0c68
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Tue Jan 24 09:36:56 2023 +0100

    Ref #953: Update DSLs metadata
---
 .../camel/k/tooling/maven/GenerateCatalogMojo.java   | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

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 1d598aec..a50aa85a 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
@@ -370,7 +370,8 @@ public class GenerateCatalogMojo extends AbstractMojo {
                 "groovy",
                 CamelLoader.fromArtifact("org.apache.camel.quarkus", "camel-quarkus-groovy-dsl")
                     .addLanguage("groovy")
-                    .putMetadata("native", "false")
+                    .putMetadata("native", "true")
+                    .putMetadata("source-required-at-build-time", "true")
                     .build()
             );
         }
@@ -379,7 +380,8 @@ public class GenerateCatalogMojo extends AbstractMojo {
                 "kts",
                 CamelLoader.fromArtifact("org.apache.camel.quarkus", "camel-quarkus-kotlin-dsl")
                     .addLanguage("kts")
-                    .putMetadata("native", "false")
+                    .putMetadata("native", "true")
+                    .putMetadata("source-required-at-build-time", "true")
                     .build()
             );
         }
@@ -389,6 +391,7 @@ public class GenerateCatalogMojo extends AbstractMojo {
                 CamelLoader.fromArtifact("org.apache.camel.quarkus", "camel-quarkus-js-dsl")
                     .addLanguage("js")
                     .putMetadata("native", "true")
+                    .putMetadata("guest-language", "true")
                     .build()
             );
         }
@@ -406,7 +409,18 @@ public class GenerateCatalogMojo extends AbstractMojo {
                 "java",
                 CamelLoader.fromArtifact("org.apache.camel.quarkus", "camel-quarkus-java-joor-dsl")
                     .addLanguages("java")
-                    .putMetadata("native", "false")
+                    .putMetadata("native", "true")
+                    .putMetadata("source-required-at-build-time", "true")
+                    .build()
+            );
+        }
+        if (dslsExclusionList != null && !dslsExclusionList.contains("jsh")) {
+            specBuilder.putLoader(
+                "jsh",
+                CamelLoader.fromArtifact("org.apache.camel.quarkus", "camel-quarkus-jsh-dsl")
+                    .addLanguages("jsh")
+                    .putMetadata("native", "true")
+                    .putMetadata("source-required-at-build-time", "true")
                     .build()
             );
         }