Skip to content

[Cherry-pick to branch-1.3] [#11480] fix(build): bump slf4j-api to 2.0.17 to eliminate duplicate jars in distribution (#11484) - #11507

Merged
jerryshao merged 1 commit into
branch-1.3from
cherry-pick-a3fbbc90-to-branch-1.3
Jun 9, 2026
Merged

jerryshao merged 1 commit into
branch-1.3from
cherry-pick-a3fbbc90-to-branch-1.3

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Cherry-pick Information:

  • Original commit: a3fbbc9
  • Target branch: branch-1.3
  • Status: ✅ Clean cherry-pick (no conflicts)

…jars in distribution (#11484)

### What changes were proposed in this pull request?

- Bumps `slf4j = "2.0.16"` → `"2.0.17"` in `gradle/libs.versions.toml`
- Removes the previous `resolutionStrategy.force` workaround from
`build.gradle.kts`

### Why are the changes needed?

`distribution/package/libs/` contained two versions of `slf4j-api`
simultaneously:
- `slf4j-api-2.0.16.jar` — from modules that only see the catalog-pinned
version
- `slf4j-api-2.0.17.jar` — from modules using `bundles.log4j` (`core`,
`server`, `server-common`), where `log4j-slf4j2-impl:2.25.4` declares a
transitive dependency on `slf4j-api:2.0.17`

Because the `assembleDistribution` copy task collects `runtimeClasspath`
from each subproject independently, and the two versions have different
filenames, `DuplicatesStrategy.EXCLUDE` cannot deduplicate them.

Bumping the catalog entry to `2.0.17` (which `log4j-slf4j2-impl:2.25.4`
already requires) makes all subprojects naturally converge to the same
version through Gradle's normal conflict resolution, so only
`slf4j-api-2.0.17.jar` ends up in the distribution.

Fix: #11480

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

- `./gradlew compileJava -PskipITs --parallel` — BUILD SUCCESSFUL (all
456 tasks)
- `./gradlew test -PskipITs --parallel` — BUILD SUCCESSFUL (all 763
tasks, 29 min)
- Verified `distribution/package/libs/` now contains only
`slf4j-api-2.0.17.jar`
- Verified `:common:dependencies` resolves directly to `2.0.17` without
any `->` upgrade

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the cherry-pick Automatically opened cherry-pick PR label Jun 9, 2026
@github-actions
github-actions Bot requested a review from jerryshao June 9, 2026 01:20
@jerryshao jerryshao closed this Jun 9, 2026
@jerryshao jerryshao reopened this Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Author

Code Coverage Report

Overall Project 67.04% 🟢
Files changed No Java source files changed -

Module Coverage
aliyun 1.72% 🔴
api 46.8% 🟢
authorization-common 85.96% 🟢
aws 3.66% 🔴
azure 2.47% 🔴
catalog-common 10.42% 🔴
catalog-fileset 80.35% 🟢
catalog-glue 67.41% 🟢
catalog-hive 79.35% 🟢
catalog-jdbc-clickhouse 80.02% 🟢
catalog-jdbc-common 45.31% 🟢
catalog-jdbc-doris 80.28% 🟢
catalog-jdbc-hologres 54.03% 🟢
catalog-jdbc-mysql 79.23% 🟢
catalog-jdbc-oceanbase 78.38% 🟢
catalog-jdbc-postgresql 82.29% 🟢
catalog-jdbc-starrocks 78.51% 🟢
catalog-kafka 77.01% 🟢
catalog-lakehouse-generic 58.53% 🟢
catalog-lakehouse-hudi 79.1% 🟢
catalog-lakehouse-iceberg 85.86% 🟢
catalog-lakehouse-paimon 79.29% 🟢
catalog-model 77.72% 🟢
cli 44.51% 🟢
client-java 77.91% 🟢
common 50.17% 🟢
core 82.51% 🟢
filesystem-hadoop3 76.97% 🟢
flink 0.0% 🔴
flink-common 46.3% 🟢
flink-runtime 0.0% 🔴
gcp 14.12% 🔴
hadoop-common 10.39% 🔴
hive-metastore-common 53.9% 🟢
iceberg-common 57.41% 🟢
iceberg-rest-server 73.8% 🟢
idp-basic 86.07% 🟢
integration-test-common 0.0% 🔴
jobs 66.17% 🟢
lance-common 20.81% 🔴
lance-rest-server 60.54% 🟢
lineage 53.02% 🟢
optimizer 82.95% 🟢
optimizer-api 21.95% 🔴
server 85.73% 🟢
server-common 73.28% 🟢
spark 29.85% 🔴
spark-common 41.01% 🟢
trino-connector 39.97% 🔴

@jerryshao
jerryshao merged commit 95e48e1 into branch-1.3 Jun 9, 2026
33 checks passed
@jerryshao
jerryshao deleted the cherry-pick-a3fbbc90-to-branch-1.3 branch June 11, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick Automatically opened cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants