Skip to content

[build] Add FLINK_VERSION suffix support for version management#4325

Merged
lvyanquan merged 1 commit intoapache:masterfrom
lvyanquan:build
Mar 20, 2026
Merged

[build] Add FLINK_VERSION suffix support for version management#4325
lvyanquan merged 1 commit intoapache:masterfrom
lvyanquan:build

Conversation

@lvyanquan
Copy link
Contributor

Add FLINK_VERSION suffix support for version management

Motivation

When building and deploying CDC connectors for different Flink versions, it's helpful to have the Flink version embedded in the artifact version. This makes it easier to distinguish which Flink version a particular artifact is compatible with.

Changes

  • Added tools/update_version.sh script for standalone version updates
  • Enhanced tools/releasing/deploy_staging_jars.sh to automatically update project version when FLINK_VERSION is set

Usage

Deploy with Flink version suffix

When deploying with a specific Flink version, the script will automatically update the project version:

FLINK_VERSION=2.2 ./tools/releasing/deploy_staging_jars.sh

Version transformation example:

Current Version FLINK_VERSION New Version
3.6 2.2 3.6-2.2

@github-actions github-actions bot added the build label Mar 20, 2026
Copy link
Member

@yuxiqian yuxiqian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lvyanquan lvyanquan merged commit e663b00 into apache:master Mar 20, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants