Commit 4cb096e 1 parent 6137616 commit 4cb096e Copy full SHA for 4cb096e
File tree 1 file changed +3
-3
lines changed
jib-core/src/main/java/com/google/cloud/tools/jib/api
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -598,8 +598,8 @@ public JibContainerBuilder toContainerBuilder() throws IOException {
598
598
LayerType .DEPENDENCIES , addedDependencies ,
599
599
LayerType .SNAPSHOT_DEPENDENCIES , addedSnapshotDependencies ,
600
600
LayerType .PROJECT_DEPENDENCIES , addedProjectDependencies );
601
- for (LayerType layerType : layerMap .keySet ()) {
602
- for (Path file : Preconditions .checkNotNull (layerMap . get ( layerType ))) {
601
+ for (Map . Entry < LayerType , List < Path >> entry : layerMap .entrySet ()) {
602
+ for (Path file : Preconditions .checkNotNull (entry . getValue ( ))) {
603
603
// Handle duplicates by appending filesize to the end of the file. This renaming logic
604
604
// must be in sync with the code that does the same in the other place. See
605
605
// https://github.com/GoogleContainerTools/jib/issues/3331
@@ -610,7 +610,7 @@ public JibContainerBuilder toContainerBuilder() throws IOException {
610
610
// Add dependencies to layer configuration
611
611
addFileToLayer (
612
612
layerBuilders ,
613
- layerType ,
613
+ entry . getKey () ,
614
614
file ,
615
615
appRoot .resolve (dependenciesDestination ).resolve (jarName ));
616
616
}
You can’t perform that action at this time.
0 commit comments