@Deprecated
  public JibContainerBuilder setLayers(List<LayerConfiguration> layerConfigurations) {
    return setFileEntriesLayers(
        layerConfigurations.stream()
            .map(LayerConfiguration::toFileEntriesLayer)
            .collect(Collectors.toList()));
  }
Sets the layers (defined by a list of {@link LayerConfiguration}s). This replaces any
previously-added layers.

@deprecated use {@link #setFileEntriesLayers(List)}.
@param layerConfigurations the list of {@link LayerConfiguration}s
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java