diff --git a/flink-shaded-swagger/pom.xml b/flink-shaded-swagger/pom.xml
index cb6d9b7..13d3b63 100644
--- a/flink-shaded-swagger/pom.xml
+++ b/flink-shaded-swagger/pom.xml
@@ -37,6 +37,7 @@ under the License.
io.swagger.core.v3
swagger-core
2.2.19
+ ${flink.markBundledAsOptional}
org.slf4j
@@ -52,6 +53,7 @@ under the License.
org.yaml
snakeyaml
2.1
+ ${flink.markBundledAsOptional}
com.fasterxml.jackson
diff --git a/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-35/pom.xml b/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-35/pom.xml
index 6b377b9..f3df990 100644
--- a/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-35/pom.xml
+++ b/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-35/pom.xml
@@ -41,6 +41,7 @@ under the License.
org.apache.zookeeper
zookeeper
+ ${flink.markBundledAsOptional}
@@ -63,6 +64,7 @@ under the License.
org.apache.curator
curator-recipes
${curator.version}
+ ${flink.markBundledAsOptional}
@@ -114,6 +116,7 @@ under the License.
org.apache.zookeeper
zookeeper
${zookeeper.version}
+ ${flink.markBundledAsOptional}
io.netty
@@ -127,6 +130,7 @@ under the License.
com.google.guava
guava
${guava.version}
+ ${flink.markBundledAsOptional}
diff --git a/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-36/pom.xml b/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-36/pom.xml
index 1e073d9..2433959 100644
--- a/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-36/pom.xml
+++ b/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-36/pom.xml
@@ -41,6 +41,7 @@ under the License.
org.apache.zookeeper
zookeeper
+ ${flink.markBundledAsOptional}
@@ -71,6 +72,7 @@ under the License.
io.dropwizard.metrics
metrics-core
3.2.5
+ ${flink.markBundledAsOptional}
@@ -88,6 +90,7 @@ under the License.
org.apache.curator
curator-recipes
${curator.version}
+ ${flink.markBundledAsOptional}
@@ -139,6 +142,7 @@ under the License.
org.apache.zookeeper
zookeeper
${zookeeper.version}
+ ${flink.markBundledAsOptional}
io.netty
@@ -152,6 +156,7 @@ under the License.
com.google.guava
guava
${guava.version}
+ ${flink.markBundledAsOptional}
diff --git a/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-37/pom.xml b/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-37/pom.xml
index 9d3fda0..5ef1e8e 100644
--- a/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-37/pom.xml
+++ b/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-37/pom.xml
@@ -41,6 +41,7 @@ under the License.
org.apache.zookeeper
zookeeper
+ ${flink.markBundledAsOptional}
@@ -61,6 +62,7 @@ under the License.
io.dropwizard.metrics
metrics-core
4.1.12.1
+ ${flink.markBundledAsOptional}
@@ -73,6 +75,7 @@ under the License.
org.apache.curator
curator-recipes
${curator.version}
+ ${flink.markBundledAsOptional}
@@ -124,6 +127,7 @@ under the License.
org.apache.zookeeper
zookeeper
${zookeeper.version}
+ ${flink.markBundledAsOptional}
io.netty
@@ -137,6 +141,7 @@ under the License.
com.google.guava
guava
${guava.version}
+ ${flink.markBundledAsOptional}
diff --git a/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-38/pom.xml b/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-38/pom.xml
index 9935f81..80f38cf 100644
--- a/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-38/pom.xml
+++ b/flink-shaded-zookeeper-parent/flink-shaded-zookeeper-38/pom.xml
@@ -41,6 +41,7 @@ under the License.
org.apache.zookeeper
zookeeper
+ ${flink.markBundledAsOptional}
@@ -65,6 +66,7 @@ under the License.
io.dropwizard.metrics
metrics-core
4.1.12.1
+ ${flink.markBundledAsOptional}
@@ -77,6 +79,7 @@ under the License.
org.apache.curator
curator-recipes
${curator.version}
+ ${flink.markBundledAsOptional}
@@ -128,6 +131,7 @@ under the License.
org.apache.zookeeper
zookeeper
${zookeeper.version}
+ ${flink.markBundledAsOptional}
io.netty
@@ -141,6 +145,7 @@ under the License.
com.google.guava
guava
${guava.version}
+ ${flink.markBundledAsOptional}