/** * Adds dependency JARs to the image. Duplicate JAR filenames 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 */ public JavaContainerBuilder addDependencies(Path... dependencyFiles) throws IOException { return addDependencies(Arrays.asList(dependencyFiles)); }
/** * Adds dependency JARs to the image. Duplicate JAR filenames 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 */ public JavaContainerBuilder addDependencies(Path... dependencyFiles) throws IOException { return addDependencies(Arrays.asList(dependencyFiles)); }
/** * Adds dependency JARs to the image. Duplicate JAR filenames 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 */ public JavaContainerBuilder addDependencies(Path... dependencyFiles) throws IOException { return addDependencies(Arrays.asList(dependencyFiles)); }