Martijn Visser created FLINK-41230:
--------------------------------------

             Summary: Declare flink-connector-base as provided in 
flink-connector-jdbc
                 Key: FLINK-41230
                 URL: https://issues.apache.org/jira/browse/FLINK-41230
             Project: Flink
          Issue Type: Bug
          Components: Connectors / JDBC
            Reporter: Martijn Visser


The root pom declares flink-connector-base without a scope, and so does its 
dependencyManagement entry. Only flink-connector-jdbc-core overrides it to 
provided. Every dialect module therefore depends on it at compile scope:

{noformat}
flink-connector-jdbc-oracle: 
org.apache.flink:flink-connector-base:jar:2.1.3:compile
{noformat}

The same line appears for cratedb, db2, mysql, oceanbase, postgres, spanner, 
sqlserver and trino.

flink-dist bundles flink-connector-base (FLINK-25927), so a connector should 
not bring it in itself. Declaring it provided in the root pom drops it from the 
dialects' runtime classpath and published POMs. After the change, none of the 
modules has an org.apache.flink runtime dependency other than 
flink-connector-jdbc-*.



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

Reply via email to