Publish a SNAPSHOT version¶
This step is to publish Maven SNAPSHOTs to https://repository.apache.org
This is a good practice for a release manager to try out his/her credential setup.
The detailed requirement is on ASF Infra website
Warning
All scripts on this page should be run in your local Sedona Git repo under master branch via a single script file.
0. Prepare an empty script file¶
- In your local Sedona Git repo under master branch, run
echo '#!/bin/bash' > create-release.sh chmod 777 create-release.sh
- Use your favourite GUI text editor to open
create-release.sh
. - Then keep copying the scripts on this web page to replace all content in this text file.
- Do NOT directly copy/paste the scripts to your terminal because a bug in
clipboard.js
will create link breaks in such case. - Each time when you copy content to this script file, run
./create-release.sh
to execute it.
1. Upload snapshot versions¶
In your Sedona GitHub repo, run this script:
#!/bin/bash
git checkout master
git pull
rm -f release.*
rm -f pom.xml.*
# Validate the POMs and your credential setup
mvn -q -B clean release:prepare -Dtag=sedona-1.5.0-rc1 -DreleaseVersion=1.5.0 -DdevelopmentVersion=1.5.1-SNAPSHOT -Dresume=false -DdryRun=true -Penable-all-submodules -Darguments="-DskipTests"
mvn -q -B release:clean -Penable-all-submodules
# Spark 3.0 and Scala 2.12
mvn -q deploy -DskipTests -Dspark=3.0 -Dscala=2.12
# Spark 3.0 and Scala 2.13
mvn -q deploy -DskipTests -Dspark=3.0 -Dscala=2.13
# Spark 3.4 and Scala 2.12
mvn -q deploy -DskipTests -Dspark=3.4 -Dscala=2.12
# Spark 3.4 and Scala 2.13
mvn -q deploy -DskipTests -Dspark=3.4 -Dscala=2.13
Last update:
June 20, 2023 21:38:48