Dependencies apply to a specific scope eg:

  • compiling source code
  • runtime

the scope is represented by a Configuration

The java plugins defines inheritance

main source set ./resources/gradle-dependencies.resources/unknown_filename.png

test source set: ./resources/gradle-dependencies.resources/unknown_filename.1.png (src: https://docs.gradle.org/current/userguide/java_plugin.html#sec:java_plugin_and_dependency_management)