You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2021/11/23 01:17:06 UTC

[camel-karavan] branch main updated: Fixed #106 (#118)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 2eed2be  Fixed #106 (#118)
2eed2be is described below

commit 2eed2be9856afa41accca1d2aee2a3630bfeab8a
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Mon Nov 22 20:17:01 2021 -0500

    Fixed #106 (#118)
---
 change_version.sh                                     | 16 ++++++++++++++++
 karavan-app/src/main/resources/application.properties |  2 +-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/change_version.sh b/change_version.sh
new file mode 100755
index 0000000..e707b81
--- /dev/null
+++ b/change_version.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+echo "Set Generator pom.xml version: $1";
+mvn versions:set -DnewVersion=$1 -f karavan-generator
+
+echo "Set Application pom.xml version: $1";
+mvn versions:set -DnewVersion=$1 -f karavan-app
+
+echo "Set Application package.json extension version: $1";
+yarn version --new-version $1 --no-commit --no-git-tag-version --cwd karavan-app/src/main/webapp/
+
+echo "Set VSCode extension package.json version: $1";
+yarn version --new-version $1 --no-commit --no-git-tag-version --cwd karavan-vscode
+
+echo "Set Designer package.json version: $1";
+yarn version --new-version $1 --no-commit --no-git-tag-version --cwd karavan-designer
\ No newline at end of file
diff --git a/karavan-app/src/main/resources/application.properties b/karavan-app/src/main/resources/application.properties
index d3f20b5..41e6fbc 100644
--- a/karavan-app/src/main/resources/application.properties
+++ b/karavan-app/src/main/resources/application.properties
@@ -1,4 +1,4 @@
-karavan.version=0.0.7
+karavan.version=${project.version}
 
 karavan.folder.components=components
 karavan.folder.kamelets-buildin=kamelets-buildin