-
Notifications
You must be signed in to change notification settings - Fork 244
feat: import confluent-common-bom for dependency version management #977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -232,117 +232,24 @@ | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| <dependencyManagement> | ||||||||||||||||||||||
| <dependencies> | ||||||||||||||||||||||
| <!-- our deps--> | ||||||||||||||||||||||
| <!-- Confluent Common BOM - manages third-party dependency versions --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.apache.avro</groupId> | ||||||||||||||||||||||
| <artifactId>avro</artifactId> | ||||||||||||||||||||||
| <version>${avro.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- Pin the classgraph version to match version used in ce-kafka. | ||||||||||||||||||||||
| The outadated version is brought by schema-registry transitive | ||||||||||||||||||||||
| dependency mbknor-jackson --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>io.github.classgraph</groupId> | ||||||||||||||||||||||
| <artifactId>classgraph</artifactId> | ||||||||||||||||||||||
| <version>${classgraph.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- Unify version of commons-io with ce-kafka, allow downstream repos to unpin --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>commons-io</groupId> | ||||||||||||||||||||||
| <artifactId>commons-io</artifactId> | ||||||||||||||||||||||
| <version>${commons-io.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- Unify version of commons-lang3 with ce-kafka, allow downstream repos to unpin --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.apache.commons</groupId> | ||||||||||||||||||||||
| <artifactId>commons-lang3</artifactId> | ||||||||||||||||||||||
| <version>${commons-lang3.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- Pin version of commons-beanutils as it is used transitively not only by commons-validator --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>commons-beanutils</groupId> | ||||||||||||||||||||||
| <artifactId>commons-beanutils</artifactId> | ||||||||||||||||||||||
| <version>${commons-beanutils.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>commons-codec</groupId> | ||||||||||||||||||||||
| <artifactId>commons-codec</artifactId> | ||||||||||||||||||||||
| <version>${commons-codec.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.apache.commons</groupId> | ||||||||||||||||||||||
| <artifactId>commons-compress</artifactId> | ||||||||||||||||||||||
| <version>${commons-compress.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- Unify version of commons-validator with ce-kafka, allow downstream repos to unpin --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>commons-validator</groupId> | ||||||||||||||||||||||
| <artifactId>commons-validator</artifactId> | ||||||||||||||||||||||
| <version>${commons-validator.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- Unify version of grpc-version with ce-kafka, allow downstream repos to unpin --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>io.grpc</groupId> | ||||||||||||||||||||||
| <artifactId>grpc-bom</artifactId> | ||||||||||||||||||||||
| <version>1.75.0</version> | ||||||||||||||||||||||
| <type>pom</type> | ||||||||||||||||||||||
| <scope>import</scope> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- This is to match to okio version used in ce-flink / ce-kafka 7.8 --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>com.squareup.okio</groupId> | ||||||||||||||||||||||
| <artifactId>okio-jvm</artifactId> | ||||||||||||||||||||||
| <version>${okio.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- This is to unify the version of Protocol Buffers across CP --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>com.google.protobuf</groupId> | ||||||||||||||||||||||
| <artifactId>protobuf-java</artifactId> | ||||||||||||||||||||||
| <version>${protobuf.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- snakeyaml is brought in by several confluent libraries | ||||||||||||||||||||||
| as "provided" dependency, thus leading to usage of | ||||||||||||||||||||||
| outdated versions. This instructs projects using this pom | ||||||||||||||||||||||
| to use this snakeyaml version, unless otherwise overriden. | ||||||||||||||||||||||
| After this change, we should remove all the snakeyaml re-definitions | ||||||||||||||||||||||
| in other Confluent repositories. --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.yaml</groupId> | ||||||||||||||||||||||
| <artifactId>snakeyaml</artifactId> | ||||||||||||||||||||||
| <version>${snakeyaml.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- Unify jetty across CP, remove jetty definition from | ||||||||||||||||||||||
| rest-utils after this goes through --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.eclipse.jetty</groupId> | ||||||||||||||||||||||
| <artifactId>jetty-bom</artifactId> | ||||||||||||||||||||||
| <version>${jetty.version}</version> | ||||||||||||||||||||||
| <groupId>io.confluent</groupId> | ||||||||||||||||||||||
| <artifactId>confluent-common-bom</artifactId> | ||||||||||||||||||||||
| <version>0.0.1-SNAPSHOT</version> | ||||||||||||||||||||||
| <type>pom</type> | ||||||||||||||||||||||
| <scope>import</scope> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
|
Comment on lines
236
to
242
|
||||||||||||||||||||||
| <!-- snappy-java is brought in by kafka-clients and its version is specified | ||||||||||||||||||||||
| in ce-kafka --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.xerial.snappy</groupId> | ||||||||||||||||||||||
| <artifactId>snappy-java</artifactId> | ||||||||||||||||||||||
| <version>${snappy.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- jose4j is used in ce-kafka and its version is specified | ||||||||||||||||||||||
| in ce-kafka, this is for maven projects to use the correct version --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.bitbucket.b_c</groupId> | ||||||||||||||||||||||
| <artifactId>jose4j</artifactId> | ||||||||||||||||||||||
| <version>${jose4j.version}</version> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <!-- we define guava version above, its version is specified | ||||||||||||||||||||||
| in ce-kafka, this is for maven projects to use the correct version --> | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| <!-- Jackson BOM - not yet in confluent-common-bom --> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>com.google.guava</groupId> | ||||||||||||||||||||||
| <artifactId>guava</artifactId> | ||||||||||||||||||||||
| <version>${guava.version}</version> | ||||||||||||||||||||||
| <groupId>com.fasterxml.jackson</groupId> | ||||||||||||||||||||||
| <artifactId>jackson-bom</artifactId> | ||||||||||||||||||||||
| <version>${jackson.version}</version> | ||||||||||||||||||||||
| <scope>import</scope> | ||||||||||||||||||||||
| <type>pom</type> | ||||||||||||||||||||||
|
Comment on lines
+246
to
+250
|
||||||||||||||||||||||
| <groupId>com.fasterxml.jackson</groupId> | |
| <artifactId>jackson-bom</artifactId> | |
| <version>${jackson.version}</version> | |
| <scope>import</scope> | |
| <type>pom</type> | |
| <groupId>com.fasterxml.jackson</groupId> | |
| <artifactId>jackson-bom</artifactId> | |
| <version>${jackson.version}</version> | |
| <scope>import</scope> | |
| <type>pom</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The BOM version is hard-coded here (
0.0.1-SNAPSHOT) while other BOMs in this file use properties. Consider introducing a dedicated property (e.g.,confluent-common-bom.version) so updates are centralized and downstream builds can override it consistently if needed.