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

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 768b56dadbc12c1b7f7eabcec2a5e1e249946df4
Author: Antonin Stefanutti <[email protected]>
AuthorDate: Wed Oct 23 16:25:51 2019 +0200

    feat(quarkus): Use the camel-quarkus protocol for language dependencies
---
 pkg/util/camel/camel_runtime_catalog.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pkg/util/camel/camel_runtime_catalog.go 
b/pkg/util/camel/camel_runtime_catalog.go
index da0ee4d..a69386e 100644
--- a/pkg/util/camel/camel_runtime_catalog.go
+++ b/pkg/util/camel/camel_runtime_catalog.go
@@ -40,7 +40,11 @@ func NewRuntimeCatalog(spec v1alpha1.CamelCatalogSpec) 
*RuntimeCatalog {
                for _, language := range artifact.Languages {
                        // Skip languages in common dependencies since they are 
always available to integrations
                        if artifact.ArtifactID != "camel-base" {
-                               catalog.languageDependencies[language] = 
strings.Replace(artifact.ArtifactID, "camel-", "camel:", 1)
+                               if catalog.RuntimeProvider != nil && 
catalog.RuntimeProvider.Quarkus != nil {
+                                       catalog.languageDependencies[language] 
= strings.Replace(artifact.ArtifactID, "camel-quarkus-", "camel-quarkus:", 1)
+                               } else {
+                                       catalog.languageDependencies[language] 
= strings.Replace(artifact.ArtifactID, "camel-", "camel:", 1)
+                               }
                        }
                }
        }

Reply via email to