You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/06/13 16:02:59 UTC

[camel] 02/02: CAMEL-18188: camel-jbang - Use apache maven to download JARs instead of groovy grape

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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6156d9d026e98debec504e3cceaa9fd8e0cac6f4
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Jun 13 17:42:57 2022 +0200

    CAMEL-18188: camel-jbang - Use apache maven to download JARs instead of groovy grape
---
 .../src/main/java/org/apache/camel/main/DownloaderHelper.java        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/DownloaderHelper.java b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/DownloaderHelper.java
index 69a529cbfe5..cb98dc09c59 100644
--- a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/DownloaderHelper.java
+++ b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/DownloaderHelper.java
@@ -73,8 +73,11 @@ public final class DownloaderHelper {
             LOG.debug("Downloading: {}", gav);
             List<String> deps = List.of(gav);
             List<String> customRepos = new ArrayList<>();
+
             // include Apache snapshot to make it easy to use upcoming release
-            customRepos.add(APACHE_SNAPSHOT_REPO);
+            if ("org.apache.camel".equals(groupId) && version != null && version.contains("SNAPSHOT")) {
+                customRepos.add(APACHE_SNAPSHOT_REPO);
+            }
             if (repos != null) {
                 customRepos.addAll(Arrays.stream(repos.split(",")).collect(Collectors.toList()));
             }