KAFKA-19750 Address the compileClasspath resolution warnings for the task (#20628)

`tools-api` is already in core module runtime path, so adding it to
`releaseTarGz` causes the resolution conflicts, which will be a fatal
error in gradle 9

Reviewers: Ken Huang <s7133700@gmail.com>, TengYao Chi
 <frankvicky@apache.org>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Kuan-Po Tseng 2025-10-04 23:26:07 +08:00 committed by GitHub
parent 0dd8471174
commit bc2f23b879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1039,6 +1039,8 @@ project(':core') {
implementation project(':transaction-coordinator') implementation project(':transaction-coordinator')
implementation project(':metadata') implementation project(':metadata')
implementation project(':storage:storage-api') implementation project(':storage:storage-api')
// tools-api is automatically included in releaseTarGz via core's runtimeClasspath.
// If removed from here, remember to explicitly add it back in the releaseTarGz task.
implementation project(':tools:tools-api') implementation project(':tools:tools-api')
implementation project(':raft') implementation project(':raft')
implementation project(':storage') implementation project(':storage')
@ -1261,8 +1263,6 @@ project(':core') {
from(project(':streams:test-utils').configurations.runtimeClasspath) { into("libs/") } from(project(':streams:test-utils').configurations.runtimeClasspath) { into("libs/") }
from(project(':streams:examples').jar) { into("libs/") } from(project(':streams:examples').jar) { into("libs/") }
from(project(':streams:examples').configurations.runtimeClasspath) { into("libs/") } from(project(':streams:examples').configurations.runtimeClasspath) { into("libs/") }
from(project(':tools:tools-api').jar) { into("libs/") }
from(project(':tools:tools-api').configurations.runtimeClasspath) { into("libs/") }
duplicatesStrategy 'exclude' duplicatesStrategy 'exclude'
} }