diff --git a/modules/joexapi/src/main/resources/joex-openapi.yml b/modules/joexapi/src/main/resources/joex-openapi.yml index df3fd5b7..2d97575a 100644 --- a/modules/joexapi/src/main/resources/joex-openapi.yml +++ b/modules/joexapi/src/main/resources/joex-openapi.yml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: title: Docspell JOEX - version: 0.26.0-SNAPSHOT + version: 0.25.1 description: | This is the remote API to the job executor component of Docspell. Docspell is a free document management system focused on small diff --git a/modules/restapi/src/main/resources/docspell-openapi.yml b/modules/restapi/src/main/resources/docspell-openapi.yml index e0d683bc..99fb6dfc 100644 --- a/modules/restapi/src/main/resources/docspell-openapi.yml +++ b/modules/restapi/src/main/resources/docspell-openapi.yml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: title: Docspell - version: 0.26.0-SNAPSHOT + version: 0.25.1 description: | This is the remote API to Docspell. Docspell is a free document management system focused on small groups or families. diff --git a/project/change-version.sh b/project/change-version.sh new file mode 100755 index 00000000..36cbb17b --- /dev/null +++ b/project/change-version.sh @@ -0,0 +1,29 @@ +#!/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/docspell-openapi.yml" "$curr" "$1" +edit_version "modules/joexapi/src/main/resources/joex-openapi.yml" "$curr" "$1" +edit_version "website/site/config.toml" "$curr" "$1" diff --git a/version.sbt b/version.sbt index 4772100d..8e14daa0 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -ThisBuild / version := "0.26.0-SNAPSHOT" +ThisBuild / version := "0.25.1" diff --git a/website/site/config.toml b/website/site/config.toml index dbb29d5b..1f3c85b4 100644 --- a/website/site/config.toml +++ b/website/site/config.toml @@ -26,4 +26,4 @@ skip_anchor_prefixes = [ [extra] # Put all your custom variables here -version = "0.26.0-SNAPSHOT" +version = "0.25.1"