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 2020/11/05 22:54:12 UTC

[camel-k] 15/19: Remove hardcoded camel runtime version.

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

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

commit a6a3157a45901a3098a9bf443a4460545bac957a
Author: Doru Bercea <gh...@ibm.com>
AuthorDate: Wed Nov 4 12:52:14 2020 -0500

    Remove hardcoded camel runtime version.
---
 pkg/cmd/inspect.go            | 2 +-
 pkg/util/defaults/defaults.go | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/pkg/cmd/inspect.go b/pkg/cmd/inspect.go
index bfb1ed6..caa2af9 100644
--- a/pkg/cmd/inspect.go
+++ b/pkg/cmd/inspect.go
@@ -220,7 +220,7 @@ func getTransitiveDependencies(
 	}
 
 	// Create Maven project.
-	project := runtime.GenerateProjectCommon(defaults.CamelVersion, defaults.DefaultRuntimeVersion)
+	project := runtime.GenerateProjectCommon(catalog.CamelCatalogSpec.Runtime.Metadata["camel.version"], defaults.DefaultRuntimeVersion)
 
 	// Inject dependencies into Maven project.
 	err := camel.ManageIntegrationDependencies(&project, dependencies, catalog)
diff --git a/pkg/util/defaults/defaults.go b/pkg/util/defaults/defaults.go
index 2ef059d..ede7d07 100644
--- a/pkg/util/defaults/defaults.go
+++ b/pkg/util/defaults/defaults.go
@@ -42,7 +42,4 @@ const (
 
 	// ImageName --
 	ImageName = "docker.io/apache/camel-k"
-
-	// CamelVersion --
-	CamelVersion = "3.6.0"
 )