Skip to content

Commit

Permalink
Set version to 1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek committed Jun 26, 2022
1 parent ea05034 commit f5ea1a3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/restapi/src/main/resources/sharry-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0

info:
title: Sharry
version: 1.11.0-SNAPSHOT
version: 1.11.0
license:
name: GPLv3
url: https://spdx.org/licenses/GPL-3.0-or-later.html
Expand Down
27 changes: 27 additions & 0 deletions project/change-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash

set -e

cd "$(dirname $0)/.."

edit_version() {
file="$1"
old="$2"
new="$3"

sed -i "s/$old/$new/g" $file
}

current_version() {
cat "version.sbt" | head -n1 | cut -d'=' -f2 | xargs
}

curr="$(current_version)"

if [ -z "$1" ]; then
echo "No new version given!"
exit 1
fi

edit_version "version.sbt" "$curr" "$1"
edit_version "modules/restapi/src/main/resources/sharry-openapi.yml" "$curr" "$1"
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "1.11.0-SNAPSHOT"
ThisBuild / version := "1.11.0"

0 comments on commit f5ea1a3

Please sign in to comment.