Not able to exclude log4j from Kafka-secure-serializers-3.2

Error Description : could not resolve all files for configuration.could not find log4j:log4j:1.2.17 Required by: project :abc > kafka-secure-serializers:3.2>org.apache.zookeeper:zookeeper:3.7.0

How can I solve this issue?

-I tried by excluding loggers in build.gradle file ( kotlin) but the issue is still the same.

Well, if it needs it, you should probably not exclude it.
What is the exact use-case?
And what exactly did you try?
How does your build script look like?