Releasing a new version to maven central is a bit cumbersome because maven does not play nice with cross releasing scala libraries
-
run export GPG_TTY=$(tty)
-
update the version number to the release version in every pom
-
commit
git commit -am "Prepare release"
-
tag the release
git tag v0.x.x HEAD
-
./crossbuild.sh clean deploy -DperformRelease=true
-
release the pyspark module with
rm -rf build ; rm -rf dist ; rm -rf pyspark_hnsw.egg-info ; python2.7 setup.py clean --all bdist_wheel && python2.7 -m twine upload dist/* rm -rf build ; rm -rf dist ; rm -rf pyspark_hnsw.egg-info ; python3.7 setup.py clean --all bdist_wheel && python3.7 -m twine upload dist/*
-
update the version number to the development version version in every pom to the new development version
-
update the version in hnswlib-pyspark/setup.py
-
commit
git commit -am "Next development version"
-
push
git push git push --tags