#!/bin/bash # Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. set -euo pipefail if [[ $# -ne 2 ]]; then echo "Usage: $0 " exit 1 fi readonly VESPA_VERSION=$1 readonly DIR=$2 find $DIR -name "pom.xml" -exec sed -i \ -e "s,.*SNAPSHOT.*,$VESPA_VERSION," \ -e "s,.*project.version.*,$VESPA_VERSION," \ -e "s,.*project.version.*,$VESPA_VERSION," \ {} \;