in plugins/docker/component-image/src/main/java/co/elastic/gradle/dockercomponent/ComponentBuildTask.java [62:105]
public ComponentBuildTask() {
super();
getImageArchive().convention(
getInstructions().map(map ->
map.keySet().stream()
.collect(Collectors.toMap(
Function.identity(),
architecture -> getProjectLayout()
.getBuildDirectory()
.file(getName() + "/" + "image-" + architecture + ".tar.zstd")
.get()
))
)
);
getImageIdFile().convention(
getInstructions().map(map ->
map.keySet().stream()
.collect(Collectors.toMap(
Function.identity(),
architecture -> getProjectLayout()
.getBuildDirectory()
.file(getName() + "/" + "image-" + architecture + ".imageId")
.get())
)
)
);
getCreatedAtFile().convention(
getInstructions().map(map ->
map.keySet().stream()
.collect(Collectors.toMap(
Function.identity(),
architecture -> getProjectLayout()
.getBuildDirectory()
.file(getName() + "/" + "image-" + architecture + ".createdAt")
.get())
)
)
);
rootCopySpec = getProject().getObjects().newInstance(DefaultCopySpec.class);
rootCopySpec.addChildSpecListener(DockerPluginConventions.mapCopySpecToTaskInputs(this));
}