@Option(option = "image", description = "The image reference for the target image")
  public void setTargetImage(String targetImage) {
    Preconditions.checkNotNull(jibExtension).getTo().setImage(targetImage);
  }
The target image can be overridden with the {@code --image} command line option.

@param targetImage the name of the 'to' image.
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildImageTask.java