This is an automated email from the ASF dual-hosted git repository.
arvid pushed a commit to branch release-1.12
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.12 by this push:
new ca999b2 [FLINK-22964][connector/common] Exclude flink-core from
connector-common dependencies.
ca999b2 is described below
commit ca999b28ccaff2cb82638ada8a4157444c9a8efb
Author: Arvid Heise <[email protected]>
AuthorDate: Tue Jun 29 15:00:32 2021 +0200
[FLINK-22964][connector/common] Exclude flink-core from connector-common
dependencies.
Connectors get shaded into the user jar and as such should contain no
unnecessary dependencies to flink. However, connector-base is exposing
`flink-core` which then by default gets shaded into the user jar. Except for
6MB of extra size, the dependency also causes class loading issues, when
`classloader.parent-first-patterns` does not include `o.a.f`.
---
flink-connectors/flink-connector-base/pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/flink-connectors/flink-connector-base/pom.xml
b/flink-connectors/flink-connector-base/pom.xml
index 80f3acb..c78c759 100644
--- a/flink-connectors/flink-connector-base/pom.xml
+++ b/flink-connectors/flink-connector-base/pom.xml
@@ -40,6 +40,7 @@
<groupId>org.apache.flink</groupId>
<artifactId>flink-core</artifactId>
<version>${project.version}</version>
+ <scope>provided</scope>
</dependency>
<!-- test dependency -->