kafka
kafka copied to clipboard
KAFKA-18752: Fix the warning of no-operation caused by slf4j in building kafka
JIRA: KAFKA-18752 In KAFKA-18466, we remove the slf4j impl from runtime scope to fix the compatibility issue (see https://github.com/apache/kafka/pull/17373#issuecomment-2580893706). However, that also causes a side effect: when running some tasks, slf4j can't find any provider as they are included in "release-only". We could fix this by adding releaseOnly to the class path.
This patch leverages the task collection API to enable specific tasks to
access releaseOnly dependencies.
Build output: