This is an automated email from the ASF dual-hosted git repository. lhotari pushed a commit to branch branch-4.0 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit c65715da2aed357cc508d19ed728f828ce8c9edf Author: Lari Hotari <[email protected]> AuthorDate: Fri Sep 19 18:53:24 2025 +0300 [fix][client] Exclude io.prometheus:simpleclient_caffeine from client-side dependencies (#24761) --- bouncy-castle/bc/pom.xml | 6 +++++ bouncy-castle/bcfips/pom.xml | 6 +++++ distribution/shell/src/assemble/LICENSE.bin.txt | 2 -- pom.xml | 34 +++++-------------------- pulsar-client-messagecrypto-bc/pom.xml | 6 +++++ pulsar-client/pom.xml | 6 +++++ pulsar-functions/instance/pom.xml | 9 ++++--- pulsar-functions/utils/pom.xml | 6 +++++ pulsar-io/debezium/core/pom.xml | 6 +++++ pulsar-io/kafka-connect-adaptor/pom.xml | 6 +++++ pulsar-websocket/pom.xml | 6 +++++ 11 files changed, 59 insertions(+), 34 deletions(-) diff --git a/bouncy-castle/bc/pom.xml b/bouncy-castle/bc/pom.xml index 3662a60e250..65b6dccd5af 100644 --- a/bouncy-castle/bc/pom.xml +++ b/bouncy-castle/bc/pom.xml @@ -37,6 +37,12 @@ <artifactId>pulsar-common</artifactId> <version>${project.version}</version> <scope>provided</scope> + <exclusions> + <exclusion> + <groupId>io.prometheus</groupId> + <artifactId>simpleclient_caffeine</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> diff --git a/bouncy-castle/bcfips/pom.xml b/bouncy-castle/bcfips/pom.xml index dce2f3b2291..3db831a8443 100644 --- a/bouncy-castle/bcfips/pom.xml +++ b/bouncy-castle/bcfips/pom.xml @@ -37,6 +37,12 @@ <artifactId>pulsar-common</artifactId> <version>${project.version}</version> <scope>provided</scope> + <exclusions> + <exclusion> + <groupId>io.prometheus</groupId> + <artifactId>simpleclient_caffeine</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> diff --git a/distribution/shell/src/assemble/LICENSE.bin.txt b/distribution/shell/src/assemble/LICENSE.bin.txt index 234cd690f73..8aa3b8aef0e 100644 --- a/distribution/shell/src/assemble/LICENSE.bin.txt +++ b/distribution/shell/src/assemble/LICENSE.bin.txt @@ -324,8 +324,6 @@ The Apache Software License, Version 2.0 - jackson-datatype-jdk8-2.17.2.jar - jackson-datatype-jsr310-2.17.2.jar - jackson-module-parameter-names-2.17.2.jar - * Caffeine -- caffeine-2.9.1.jar - * simpleclient_caffeine-0.16.0.jar * Conscrypt -- conscrypt-openjdk-uber-2.5.2.jar * Gson - gson-2.8.9.jar diff --git a/pom.xml b/pom.xml index 0dba06f7a93..3dfe260eff7 100644 --- a/pom.xml +++ b/pom.xml @@ -1093,38 +1093,16 @@ flexible messaging model and an intuitive client API.</description> <dependency> <groupId>io.prometheus</groupId> - <artifactId>simpleclient</artifactId> - <version>${prometheus.version}</version> - </dependency> - - <dependency> - <groupId>io.prometheus</groupId> - <artifactId>simpleclient_hotspot</artifactId> - <version>${prometheus.version}</version> - </dependency> - - <dependency> - <groupId>io.prometheus</groupId> - <artifactId>simpleclient_log4j2</artifactId> - <version>${prometheus.version}</version> - </dependency> - - <dependency> - <groupId>io.prometheus</groupId> - <artifactId>simpleclient_servlet</artifactId> - <version>${prometheus.version}</version> - </dependency> - - <dependency> - <groupId>io.prometheus</groupId> - <artifactId>simpleclient_jetty</artifactId> + <artifactId>simpleclient_bom</artifactId> <version>${prometheus.version}</version> + <type>pom</type> + <scope>import</scope> </dependency> <dependency> - <groupId>io.prometheus</groupId> - <artifactId>simpleclient_caffeine</artifactId> - <version>${prometheus.version}</version> + <groupId>io.prometheus.jmx</groupId> + <artifactId>collector</artifactId> + <version>${prometheus-jmx.version}</version> </dependency> <dependency> diff --git a/pulsar-client-messagecrypto-bc/pom.xml b/pulsar-client-messagecrypto-bc/pom.xml index 185e9b64bc8..60772f09d2c 100644 --- a/pulsar-client-messagecrypto-bc/pom.xml +++ b/pulsar-client-messagecrypto-bc/pom.xml @@ -39,6 +39,12 @@ <artifactId>pulsar-common</artifactId> <version>${project.parent.version}</version> <scope>provided</scope> + <exclusions> + <exclusion> + <groupId>io.prometheus</groupId> + <artifactId>simpleclient_caffeine</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> diff --git a/pulsar-client/pom.xml b/pulsar-client/pom.xml index e15f3be7c85..ebfdfb51642 100644 --- a/pulsar-client/pom.xml +++ b/pulsar-client/pom.xml @@ -42,6 +42,12 @@ <groupId>${project.groupId}</groupId> <artifactId>pulsar-common</artifactId> <version>${project.parent.version}</version> + <exclusions> + <exclusion> + <groupId>io.prometheus</groupId> + <artifactId>simpleclient_caffeine</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> diff --git a/pulsar-functions/instance/pom.xml b/pulsar-functions/instance/pom.xml index 30d922b4b85..f8e0575ceb8 100644 --- a/pulsar-functions/instance/pom.xml +++ b/pulsar-functions/instance/pom.xml @@ -175,27 +175,28 @@ <dependency> <groupId>io.prometheus</groupId> <artifactId>simpleclient</artifactId> - <version>${prometheus.version}</version> </dependency> <!-- Hotspot JVM metrics--> <dependency> <groupId>io.prometheus</groupId> <artifactId>simpleclient_hotspot</artifactId> - <version>${prometheus.version}</version> + </dependency> + + <dependency> + <groupId>io.prometheus</groupId> + <artifactId>simpleclient_caffeine</artifactId> </dependency> <!-- Exposition HTTPServer--> <dependency> <groupId>io.prometheus</groupId> <artifactId>simpleclient_httpserver</artifactId> - <version>${prometheus.version}</version> </dependency> <dependency> <groupId>io.prometheus.jmx</groupId> <artifactId>collector</artifactId> - <version>${prometheus-jmx.version}</version> </dependency> <dependency> diff --git a/pulsar-functions/utils/pom.xml b/pulsar-functions/utils/pom.xml index ccf3890a31d..d9b177459ec 100644 --- a/pulsar-functions/utils/pom.xml +++ b/pulsar-functions/utils/pom.xml @@ -36,6 +36,12 @@ <groupId>${project.groupId}</groupId> <artifactId>pulsar-common</artifactId> <version>${project.version}</version> + <exclusions> + <exclusion> + <groupId>io.prometheus</groupId> + <artifactId>simpleclient_caffeine</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> diff --git a/pulsar-io/debezium/core/pom.xml b/pulsar-io/debezium/core/pom.xml index 6e54d2824e2..6ee38992804 100644 --- a/pulsar-io/debezium/core/pom.xml +++ b/pulsar-io/debezium/core/pom.xml @@ -54,6 +54,12 @@ <groupId>${project.groupId}</groupId> <artifactId>pulsar-common</artifactId> <version>${project.version}</version> + <exclusions> + <exclusion> + <groupId>io.prometheus</groupId> + <artifactId>simpleclient_caffeine</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> diff --git a/pulsar-io/kafka-connect-adaptor/pom.xml b/pulsar-io/kafka-connect-adaptor/pom.xml index de89da85267..f4a800806e0 100644 --- a/pulsar-io/kafka-connect-adaptor/pom.xml +++ b/pulsar-io/kafka-connect-adaptor/pom.xml @@ -44,6 +44,12 @@ <artifactId>pulsar-common</artifactId> <version>${project.version}</version> <scope>compile</scope> + <exclusions> + <exclusion> + <groupId>io.prometheus</groupId> + <artifactId>simpleclient_caffeine</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> diff --git a/pulsar-websocket/pom.xml b/pulsar-websocket/pom.xml index 41cc17af923..5262279716e 100644 --- a/pulsar-websocket/pom.xml +++ b/pulsar-websocket/pom.xml @@ -38,6 +38,12 @@ <version>${project.version}</version> </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>pulsar-common</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> <groupId>${project.groupId}</groupId> <artifactId>pulsar-client-original</artifactId>
