I am unable to use slf4j version 2.0.16 with AEM 6.5.15 (Java 11) By default the version of slf4j-api is 1.7.32 as I can see in OSGi Bundles.
I need to use log4j 2.x and also slf4j 2.x in order to use lambda expression in log statements. Even if I update the version in pom.xml, the slf4j version doesn't change, it still remains 1.7.32.
If I forcefully install the version 2.x, my instance becomes un-usable.
What could be the reason for this?