@Override
  public BuildImageTask setJibExtension(JibExtension jibExtension) {
    this.jibExtension = jibExtension;
    return this;
  }
Task Action, builds an image to remote registry.

@throws IOException if an error occurs creating the jib runner
@throws BuildStepsExecutionException if an error occurs while executing build steps
@throws CacheDirectoryCreationException if a new cache directory could not be created
@throws MainClassInferenceException if a main class could not be found
@throws InvalidGlobalConfigException if the global config file is invalid
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildImageTask.java