I want to package the spring boot jar without the javafaker dependency. I am using the Javafaker dependency and want it to be loaded only during dev time.
<dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>1.0.2</version>
<scope>provided</scope>
</dependency>
Even after adding the scope as provided
, the jar is packaged as part of the final jar file. How can I exclude the dependency in the final build.