It declares dependencies needed for compiling the main source code.
In Gradle, the 'implementation' configuration is used for dependencies needed during compilation but not exposed to consuming projects. This allows for modular project design by encapsulating implementation details. For example, when developing a shopping cart module, you might declare a JSON library as an 'implementation' dependency.
Additional Notes
How does Gradle’s ‘implementation’ configuration work?