Skip to content

Commit

Permalink
fix: use gradle task for setting new version
Browse files Browse the repository at this point in the history
The regex pattern which was used in the sed command did not work when
running on linux.
  • Loading branch information
s4heid authored and pk-work committed Mar 19, 2021
1 parent e160d07 commit 9295c74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gradle/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ git tag "${NEXT_VERSION}" # hack: creating a temporary local tag which is neede
./gradlew changelog
git tag -d "${NEXT_VERSION}"

sed -i.bak "s/^version = \'[^\']*\'/version = \'${NEXT_VERSION}\'/g" build.gradle
rm -f build.gradle.bak
./gradlew setNewVersion -P newVersion=${NEXT_VERSION}

git add build.gradle CHANGELOG.*
git --no-pager diff --cached -- build.gradle
Expand Down

0 comments on commit 9295c74

Please sign in to comment.