SLF4J: Class path contains multiple SLF4J bindings

Resolved by adding the following exclusion in the dependencies (of pom.xml) that caused conflict.

<exclusions>
    <exclusion>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
    </exclusion>
</exclusions> 

Gradle version;

configurations.all {
    exclude module: 'slf4j-log4j12'
}