@Override
  public List<Path> getDependencies() {
    List<Path> dependencies = new ArrayList<>();
    FileCollection runtimeClasspath = project.getConfigurations().getByName(configurationName);
    // To be on the safe side with the order, calling "forEach" first (no filtering operations).
    runtimeClasspath.forEach(
        file -> {
          if (file.exists()
              && file.isFile()
              && file.getName().toLowerCase(Locale.US).endsWith(".jar")) {
            dependencies.add(file.toPath());
          }
        });
    return dependencies;
  }
Generate an instance for a gradle project.

@param project a gradle project
@param logger a gradle logging instance to use for logging during the build
@param tempDirectoryProvider for scratch space during the build
@param configurationName the configuration of which the dependencies should be packed into the
    container
@return a GradleProjectProperties instance to use in a jib build
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/GradleProjectProperties.java