Here we will discuss four major configurations which include:
implementation, api, compileOnly and runtimeOnly
As a developer, we often need external or internal libraries or modules in our project. When a project, module, or library depends on further modules or libraries hence these modules or libraries on which we depend are called dependencies.
Every dependency declared for a Gradle project applies to a specific scope. For example, some dependencies should be used for compiling source code whereas others only need to be available at runtime. Gradle represents the scope of a dependency with the help of a Configuration.