You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2024/03/25 09:38:43 UTC

(camel-k-runtime) 01/02: fix(catalog): compatibility Camel K < 2.2.0

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

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

commit 3ceee23a95994b7f469ea52b0a1d01fedd5fe3ec
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Mon Mar 25 10:37:48 2024 +0100

    fix(catalog): compatibility Camel K < 2.2.0
---
 .../main/java/org/apache/camel/k/catalog/model/CamelCapability.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/support/camel-k-catalog-model/src/main/java/org/apache/camel/k/catalog/model/CamelCapability.java b/support/camel-k-catalog-model/src/main/java/org/apache/camel/k/catalog/model/CamelCapability.java
index d0fbd876..b57bb97f 100644
--- a/support/camel-k-catalog-model/src/main/java/org/apache/camel/k/catalog/model/CamelCapability.java
+++ b/support/camel-k-catalog-model/src/main/java/org/apache/camel/k/catalog/model/CamelCapability.java
@@ -23,6 +23,7 @@ import java.util.SortedSet;
 
 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.annotation.JsonInclude;
 import org.immutables.value.Value;
 
 @Value.Immutable
@@ -33,6 +34,8 @@ public interface CamelCapability {
     @Value.Auxiliary
     @Value.Default
     @Value.NaturalOrder
+    // TODO: remove this annotation once we no longer support Camel K version 2.2.0
+    @JsonInclude(JsonInclude.Include.ALWAYS)
     default SortedSet<Artifact> getDependencies() {
         return Collections.emptySortedSet();
     }