peiyu created FLINK-41654:
-----------------------------

             Summary: Produce per-version connector fat jars from 
line-parameterized modules
                 Key: FLINK-41654
                 URL: https://issues.apache.org/jira/browse/FLINK-41654
             Project: Flink
          Issue Type: Sub-task
          Components: Flink CDC
    Affects Versions: cdc-3.7.0
            Reporter: peiyu


h2. Purpose

The 9 SQL source connector fat jars and the 4 pipeline connectors whose shaded 
external dependency lines fork across generations (kafka, paimon, 
elasticsearch, iceberg) become single line-parameterized modules: 
{{flink-sql-connector-<X>-cdc${{{source.fatjar.suffix}}}}} / 
{{flink-cdc-pipeline-connector-<X>${{{pipeline.fatjar.suffix}}}}}. One module, 
one shade configuration, no per-line clones.

The other 11 pipeline connector fat jars keep a single GAV: a jar-level scan of 
all 15 pipeline connectors proved their content cross-generation equivalent 
(annotation / metadata-only differences, or byte-identical). Repository 
invariant: no artifact whose content varies across generations while its GAV 
carries no generation identity.

h2. Changes

* Root properties {{source.fatjar.suffix}} / {{pipeline.fatjar.suffix}} = 
{{-flink-${{{flink.line}}}}}; 13 connector poms parameterize their artifactId.
* The fat-jar modules depend on the thin module 
{{flink-cdc-flink-${{{flink.line}}}}} (compile).
* license_check.rb jar-name matching; source-e2e fat jar selection from the 
line property; a new CI job running the source e2e on the 2.2 line.
* Release script finalized: the flink1 line deploys everything exactly once; 
the flink2 line installs fully, then deploys a {{-pl}}-restricted per-version 
list (no {{-am}} - a second deploy of shared GAVs would be rejected by Nexus 
staging, protectively so).
* 2.x-line jdbc coordinates adapted ({{flink-connector-jdbc-core}} + the split 
dialect jar).

h2. Verification

Dual-generation builds; jar-level comparison of every per-version fat jar 
against the pre-refactor artifact of its line (the 4 pipeline fat jars each 
drop exactly the placeholder class the old per-line shells contributed; the SQL 
and dist fat jars are byte-identical); e2e on both lines via CI.

h2. Dependencies

After the dist sub-task ({{flink.line}}).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to