Log4j getting downloaded even we have excluded from service

Jenkins is not using log4j. We have lots of details on Apache Log4j 2 vulnerability CVE-2021-44228

If your asking about your code then that’s more of a maven/gradle/etc question not a Jenkins question.