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:02 UTC
[camel-k] 05/19: Fix default versions.
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 36f5cbf5a329ac3c958e84f26d3eb1a41cf308d8
Author: Doru Bercea <gh...@ibm.com>
AuthorDate: Wed Oct 21 12:24:57 2020 -0400
Fix default versions.
---
pkg/cmd/inspect.go | 4 +---
pkg/util/defaults/defaults.go | 3 +++
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/pkg/cmd/inspect.go b/pkg/cmd/inspect.go
index ee2d461..c3d9f723 100644
--- a/pkg/cmd/inspect.go
+++ b/pkg/cmd/inspect.go
@@ -39,8 +39,6 @@ import (
var acceptedDependencyTypes = []string{"bom", "camel", "camel-k", "camel-quarkus", "mvn", "github"}
const (
- defaultRuntimeVersion = "1.3.0"
- defaultCamelVersion = "3.3.0"
defaultWorkspaceDirectoryName = "workspace"
defaultDependenciesDirectoryName = "dependencies"
)
@@ -303,7 +301,7 @@ func getTransitiveDependencies(
}
// Create Maven project.
- project := runtime.GenerateProjectCommon(defaultCamelVersion, defaultRuntimeVersion)
+ project := runtime.GenerateProjectCommon(defaults.CamelVersion, defaults.DefaultRuntimeVersion)
// Inject dependencies into Maven project.
err := builder.InjectDependenciesCommon(&project, dependencies, catalog)
diff --git a/pkg/util/defaults/defaults.go b/pkg/util/defaults/defaults.go
index ede7d07..66885fb 100644
--- a/pkg/util/defaults/defaults.go
+++ b/pkg/util/defaults/defaults.go
@@ -42,4 +42,7 @@ const (
// ImageName --
ImageName = "docker.io/apache/camel-k"
+
+ // CamelVersion --
+ CamelVersion = "3.3.0"
)