public JavaContainerBuilder addDependencies(List<Path> dependencyFiles) throws IOException {
    // Make sure all files exist before adding any
    for (Path file : dependencyFiles) {
      if (!Files.exists(file)) {
        throw new NoSuchFileException(file.toString());
      }
    }
    addedDependencies.addAll(dependencyFiles);
    classpathOrder.add(LayerType.DEPENDENCIES);
    return this;
  }
Adds dependency JARs to the image. Duplicate JAR filenames across all dependencies are renamed
with the filesize in order to avoid collisions.

@param dependencyFiles the list of dependency JARs to add to the image
@return this
@throws IOException if adding the layer fails
jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java