- 
                Notifications
    
You must be signed in to change notification settings  - Fork 224
 
Release Process
The Dapr Java SDK release process is highly automated and follows a structured approach to ensure quality and consistency. Only Java maintainers or members of the Dapr release team may release the Java SDK.
- Authorization: Only Java maintainers or members of the Dapr release team can create releases
 - 
GitHub Actions Access: Access to the 
Create a releaseGitHub Actions workflow - 
Branch Strategy: Always branch from 
master- the automation script is smart enough to determine the correct branch based on the version input 
Always release an RC first before creating the official release.
- 
Create Release Candidate:
- Go to GitHub Actions → 
Create a releaseworkflow - Click 
Run workflow - Input the RC version (e.g., 
1.14.0-rc-1) - 
Important: Always leave the branch as 
masterwhen inputting the version - The automation will:
- Create the release branch (
release-1.14) - Generate the RC tag (
v1.14.0-rc-1) - Update version numbers automatically
 
 - Create the release branch (
 
 - Go to GitHub Actions → 
 - 
RC Validation:
- Users validate the bugfix and/or feature in the RC
 - Monitor for any issues or feedback
 - If issues are found, create additional RCs (e.g., 
1.14.0-rc-2) 
 - 
Post-RC Work:
- If work needs to be included after the RC is cut, cherry-pick commits into the release branch
 - 
Do not merge directly to 
masterfor release-specific changes, they should be merged to the release branch and then once the release is officially cut one PR should merge back the changes from thereleasebranch back intomaster 
 
- 
Create Official Release:
- Once RC validation is complete, go to GitHub Actions → 
Create a releaseworkflow - Input the official version (e.g., 
1.14.0) - 
Important: Always leave the branch as 
masterwhen inputting the version - The automation will:
- Use the existing release branch
 - Generate the official tag (
v1.14.0) - Automatically generate and update Javadocs
 - Publish to Maven Central
 
 
 - Once RC validation is complete, go to GitHub Actions → 
 - 
Monitor Build Status:
- After creating the release, monitor for 2 builds:
- One for the release branch
 - One for the tag
 
 - Ensure both builds are green and successfully published
 
 - After creating the release, monitor for 2 builds:
 - 
Create Release Notes:
- Only for official releases (not for RCs)
 - Go to GitHub Releases
 - Create release notes for the official version, it should auto-fill with merged PRs between the new official release and the last official release for you. Tweak the release notes if they don't mean anything to a user to make it make more sense.
 - Do not create the tag again - just the release notes
 
 
- 
Update Master Version:
- 
Only after cutting the first RC (rc-1) - if this is not 
rc-1, skip this step - Go to GitHub Actions → 
Create a releaseworkflow - Input the next 
SNAPSHOTversion (e.g.,1.15.0-SNAPSHOT) - This is only done once per release cycle, right after the first RC is cut
 
 - 
Only after cutting the first RC (rc-1) - if this is not 
 - 
Branch Management:
- After the official release, merge the release branch back to 
mastervia a single PR - This ensures 
masterhas all the release changes 
 - After the official release, merge the release branch back to 
 
- Never update versions manually - daprbot will PR version updates automatically
 - Never revert Javadoc PRs from daprbot - Java docs are automatically updated
 - The automation script is smart enough to determine the correct branch based on the version input
 
- 
Always branch from 
masterwhen using the GitHub Actions workflow - If a release branch already exists (from a previous RC), the automation will use the existing branch
 - For fresh releases, the automation creates the appropriate release branch
 
- Javadocs are automatically generated and updated - never revert these changes
 - The process is almost entirely automated
 - Release notes are NOT needed for RCs, only for official releases
 
- If you need a bugfix in the latest release after the release branch has been cut:
- Ensure the PR goes to 
masterand the appropriatereleasebranch - Cherry-pick commits as needed
 
 - Ensure the PR goes to 
 
For a hypothetical release of version 1.20.0:
- 
First RC: Input 
1.20.0-rc-1→ Createsrelease-1.20branch - 
Next Cycle Prep: Input 
1.21.0-SNAPSHOT→ Updates master for next development cycle - Validation: Users test the RC
 - 
Official Release: Input 
1.20.0→ Uses existingrelease-1.20branch (GHA input should havemasterbc the automation will choose the proper branch behind the scenes for us) 
- 
Build Failures: Check both the release branch and tag builds, worst case just delete the tag and retrigger CI to 
create a release - Version Conflicts: Ensure you're not manually updating versions
 - Documentation Issues: Never revert daprbot's Javadoc PRs. If daprbot's PR has issues, manually update the docs. Follow steps from this PR as a reference
 - 
Branch Issues: Always use 
masteras the source branch in GitHub Actions 
Everything below is left for historical purposes and is manual and outdated. The above process is latest and automated.
- Latest build in 
masterbranch- maven pom version includes 
-SNAPSHOTsuffix - Push snapshot package to nexus repository
 
 - maven pom version includes 
 - Release Candidate build in 
release-X.Ybranch- maven pom version includes 
X.Y.Z-rc-Wsuffix - tagging 
vX.Y.Z-rc-Wtriggers build to publishX.Y.Z-rc-Wto nexus snapshot repository 
 - maven pom version includes 
 - Release build in 
release-X.Ybranch- maven pom version MUST NOT have any suffix
 - tagging 
vX.Y.Ztriggers build to publishX.Y.Zto nexus central repository 
 
- Optionally, release a beta version.
 
# Set the two environment variables below.
export DAPR_JAVA_SDK_RELEASE="X.Y.Z-beta"
export DAPR_JAVA_SDK_RC_COUNT="1" #Incremented count like 1, 2, 3, etc..
export DAPR_JAVA_SDK_RELEASE_BRANCH="release-${DAPR_JAVA_SDK_RELEASE}"
export DAPR_JAVA_SDK_VERSION="${DAPR_JAVA_SDK_RELEASE}-${DAPR_JAVA_SDK_RC_COUNT}"
git checkout -b $DAPR_JAVA_SDK_RELEASE_BRANCH
git fetch upstream
git reset --hard upstream/master
./scripts/update_sdk_version.sh $DAPR_JAVA_SDK_VERSION
git commit -s -m "Release $DAPR_JAVA_SDK_VERSION" -a
git push upstream $DAPR_JAVA_SDK_RELEASE_BRANCH
git tag v$DAPR_JAVA_SDK_VERSION
git push upstream --tags
- 
Update the
build.yamlandvalidate.yamlwith the latest dapr runtime and CLI RCs. - 
Create
release-X.Ybranch and push 
# Set the three environment variables below.
export DAPR_JAVA_SDK_RELEASE="X.Y"
export DAPR_JAVA_SDK_PATCH_VERSION="0" #Incremented count like 0, 1, 2, 3, etc..
export DAPR_JAVA_SDK_RC_COUNT="1" #Incremented count like 1, 2, 3, etc..
export DAPR_JAVA_SDK_RELEASE_BRANCH="release-${DAPR_JAVA_SDK_RELEASE}"
export DAPR_JAVA_SDK_VERSION="${DAPR_JAVA_SDK_RELEASE}.${DAPR_JAVA_SDK_PATCH_VERSION}-rc-${DAPR_JAVA_SDK_RC_COUNT}"
git checkout -b $DAPR_JAVA_SDK_RELEASE_BRANCH
git fetch upstream
git reset --hard upstream/master
./scripts/update_sdk_version.sh $DAPR_JAVA_SDK_VERSION
git commit -s -m "Release $DAPR_JAVA_SDK_VERSION" -a
git push upstream $DAPR_JAVA_SDK_RELEASE_BRANCH
- Tag RC version (vX.Y.Z-rc-W)
 
git tag v$DAPR_JAVA_SDK_VERSION
git push upstream v$DAPR_JAVA_SDK_VERSION
- Prepare next release: Update version in master branch. Where 
NisY+1. 
# Set the two environment variables below.
export DAPR_JAVA_SDK_NEXT_RELEASE="X.N"
export DAPR_JAVA_SDK_NEXT_PATCH_VERSION="0" #Incremented count like 0, 1, 2, 3, etc..
export DAPR_JAVA_SDK_NEXT_VERSION="${DAPR_JAVA_SDK_NEXT_RELEASE}.${DAPR_JAVA_SDK_NEXT_PATCH_VERSION}-SNAPSHOT"
git checkout -b next-release-${DAPR_JAVA_SDK_NEXT_VERSION}
git fetch upstream
git reset --hard upstream/master
.github/scripts/update_sdk_version.sh $DAPR_JAVA_SDK_NEXT_VERSION
git commit -s -m "Upgrade the version to ${DAPR_JAVA_SDK_NEXT_VERSION}" -a
git push origin next-release-${DAPR_JAVA_SDK_NEXT_VERSION}
- 
Prepare next release: Create PR from
next-release-*branch tomasterbranch - 
GitHub Actions will build and publish RC pkgs to Nexus OSS repository
 - 
Test RC builds.
 - 
In case of bugs, generate new RCs repeating steps 2 and 3.
 
Once the RC is good and we are OK to release, proceed.
- Remove RC suffix:
 
export DAPR_JAVA_SDK_VERSION="${DAPR_JAVA_SDK_RELEASE}.${DAPR_JAVA_SDK_PATCH_VERSION}"
git checkout $DAPR_JAVA_SDK_RELEASE_BRANCH
git fetch upstream
git reset --hard upstream/$DAPR_JAVA_SDK_RELEASE_BRANCH
.github/scripts/update_sdk_version.sh $DAPR_JAVA_SDK_VERSION
- Push the change to 
release-X.Yand release. 
git commit -s -m "Upgrade version to $DAPR_JAVA_SDK_VERSION" -a
git push upstream $DAPR_JAVA_SDK_RELEASE_BRANCH
- Update README.md and Javadocs website
 
.github/scripts/update_docs.sh $DAPR_JAVA_SDK_VERSION
# MAKE SURE YOUR WORKING DIR IS CLEAN
git add -A
git commit -s -m "Generate updated javadocs for $DAPR_JAVA_SDK_VERSION" -a
git push upstream $DAPR_JAVA_SDK_RELEASE_BRANCH
- Release
 
git tag v${DAPR_JAVA_SDK_VERSION}
git push upstream v${DAPR_JAVA_SDK_VERSION}
- Update the live Javadocs website:
 
git checkout -b update_javadocs_$DAPR_JAVA_SDK_RELEASE_BRANCH
git reset --hard upstream/master
git cherry-pick $DAPR_JAVA_SDK_RELEASE_BRANCH
git push origin update_javadocs_$DAPR_JAVA_SDK_RELEASE_BRANCH
# Create PR into master and merge it.
- CI will release final build to central repository. Verify.
 
Naming convention is inspired by the one used in JUnit
- Preview prior to a release candidate (optional): X.Y.Z-beta-W
 - Release candidate: X.Y.Z-rc-W
 - Release: X.Y.Z
 - Release branch: release-X.Y
 - Next release: X.Y.Z-SNAPSHOT
 - RC and beta counts start with 1.
 
Because the SDK version is in the pom.xml file, we DO NOT merge release back into master branch.