Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (27 sloc) 1.41 KB
#!/bin/sh
read -p "Enter the previous version: " oldVersion
read -p "Enter the current build version (without snapshot): " currentVersion
read -p "Enter the version to release: " releaseVersion
read -p "Enter the next build version (without snapshot): " nextVersion
echo "Starting to release Kystrix $releaseVersion" && \
git pull --rebase && \
./kobaltw clean test && \
echo "Changing Build version to $releaseVersion" && \
sed -i "" "s/val kystrix = \"${currentVersion}-SNAPSHOT\"/val kystrix = \"${releaseVersion}\"/g" kobalt/src/Build.kt && \
echo "Updating README.md" && \
sed -i "" "s/${oldVersion}/${releaseVersion}/g" README.md && \
echo "Pushing changes to git" && \
git ci -am "Preparing for release ${releaseVersion}" && \
git push && \
echo "Assembling build artifacts" && \
./kobaltw clean assemble && \
echo "Will create and push git tags.." && \
git tag -a "${releaseVersion}" -m "Released ${releaseVersion}" && \
git push --tags && \
echo "Upload to Bintray (enter sonatype password when prompted)..." && \
./kobaltw uploadBintray && \
echo "Bintray upload completed, will update Build version.." && \
sed -i "" "s/val kystrix = \"${releaseVersion}\"/val kystrix = \"${nextVersion}-SNAPSHOT\"/g" kobalt/src/Build.kt && \
git ci -am "Setting build version to ${nextVersion}-SNAPSHOT" && \
git push && \
echo "Release of Kystrix $releaseVersion completed successfully! Login to Bintray and sync both projects to Maven central!"
You can’t perform that action at this time.