2222## Overview
2323
2424 1 . Test the revision to be released
25- 2 . Bump version (detailed later)
25+ 2 . Bump version for new release (detailed later)
2626 3 . Prepare RC and vote (detailed later)
2727 4 . Publish (detailed later)
28- 5 . Bump version by ` dev/release/bump_version.sh X.Y.Z-SNAPSHOT `
28+ 5 . Bump version for new development (detailed later)
2929
30- ### Bump version
30+ ### Bump version for new release
3131
3232Run ` dev/release/bump_version.sh ` on a working copy of your fork not
3333` git@github.com:apache/arrow-java ` :
@@ -51,8 +51,8 @@ need `gh` command and GitHub personal access token.
5151See also:
5252https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
5353
54- We need to merge the pull request before we cut RC. If we try cut RC
55- without merging the pull request, the script to cut RC is failed.
54+ We need to merge the pull request before we cut a RC. If we try cut a
55+ RC without merging the pull request, the script to cut a RC is failed.
5656
5757### Prepare RC and vote
5858
@@ -125,7 +125,30 @@ $ GH_TOKEN=${YOUR_GITHUB_TOKEN} dev/release/release.sh 19.0.0 1
125125Add the release to ASF's report database via [ Apache Committee Report
126126Helper] ( https://reporter.apache.org/addrelease.html?arrow ) .
127127
128- ### Verify
128+ ### Bump version for new development
129+
130+ We should bump version in the main branch for new development after we
131+ release a new version.
132+
133+ Run ` dev/release/bump_version.sh ` on a working copy of your fork not
134+ ` git@github.com:apache/arrow-java ` :
135+
136+ ``` console
137+ $ git clone git@github.com:${YOUR_GITHUB_ACCOUNT} /arrow-java.git arrow-java.${YOUR_GITHUB_ACCOUNT}
138+ $ cd arrow-java.${YOUR_GITHUB_ACCOUNT}
139+ $ GH_TOKEN=${YOUR_GITHUB_TOKEN} dev/release/bump_version.sh ${NEW_VERSION} -SNAPSHOT
140+ ```
141+
142+ Here is an example to bump version to 19.0.1-SNAPSHOT:
143+
144+ ```
145+ $ GH_TOKEN=${YOUR_GITHUB_TOKEN} dev/release/bump_version.sh 19.0.0-SNAPSHOT
146+ ```
147+
148+ It creates a feature branch and adds a commit that bumps version. This
149+ opens a pull request from the feature branch by ` gh pr create ` .
150+
151+ ## Verify
129152
130153We have a script to verify a RC.
131154
0 commit comments