You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/02/16 07:54:01 UTC

(plc4x) 02/02: build: Tried another approach to define the local repo location.

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

cdutz pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 5c4ce518b99402e645f87505ad432e6aeb1c5c23
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Fri Feb 16 08:53:44 2024 +0100

    build: Tried another approach to define the local repo location.
---
 tools/release-2-prepare-release.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/release-2-prepare-release.sh b/tools/release-2-prepare-release.sh
index 8c1b34ab25..136ab12878 100755
--- a/tools/release-2-prepare-release.sh
+++ b/tools/release-2-prepare-release.sh
@@ -19,6 +19,8 @@
 # under the License.
 # ----------------------------------------------------------------------------
 
+DIRECTORY=..
+
 # 0. Check if there are uncommitted changes as these would automatically be committed (local)
 if [[ $(git status --porcelain) ]]; then
   # Changes
@@ -32,7 +34,7 @@ IFS='.' read -ra VERSION_SEGMENTS <<< "$RELEASE_VERSION"
 NEW_VERSION="${VERSION_SEGMENTS[0]}.${VERSION_SEGMENTS[1]}.$((VERSION_SEGMENTS[2] + 1))-SNAPSHOT"
 
 # 1. Do a simple release-prepare command
-../mvnw -f ../pom.xml -e -P with-c,with-dotnet,with-go,with-java,with-python,with-sandbox,update-generated-code -Dmaven.repo.local=out/.repository release:prepare -DautoVersionSubmodules=true -DreleaseVersion="$RELEASE_VERSION" -DdevelopmentVersion="$NEW_VERSION" -Dtag="v$RELEASE_VERSION"
+../mvnw -f ../pom.xml -e -P with-c,with-dotnet,with-go,with-java,with-python,with-sandbox,update-generated-code -Dmaven.repo.local=$DIRECTORY/out/.repository release:prepare -DautoVersionSubmodules=true -DreleaseVersion="$RELEASE_VERSION" -DdevelopmentVersion="$NEW_VERSION" -Dtag="v$RELEASE_VERSION"
 if [ $? -ne 0 ]; then
     echo "Got non-0 exit code from docker compose, aborting."
     exit 1