Dependency Scope Dependency scope is used to limit the transitivity of a dependency, and also to affect the classpath used for various build tasks. There are 6 scopes available: compileThis is the default scope, used if none is specified. Compile dep…