#!/usr/bin/env bash

set -e

printf "Release version? "
read release_version

mvn -q versions:set -DnewVersion=$release_version

git add pom.xml
git commit -q -m "chore: prepare release $release_version"

git tag -a pdok-catalog-java-$release_version -m "release $release_version"

printf "New development version? "
read dev_version
mvn -q versions:set -DnewVersion=$dev_version

git add pom.xml
git commit -q -m "chore: new release cycle $dev_version [ci skip]"

mvn -q versions:commit

git push --follow-tags
Add script to release project
Add script to release project

[PDOK-4516]
