@Input
  boolean getAllowInsecureRegistries() {
    if (System.getProperty(PropertyNames.ALLOW_INSECURE_REGISTRIES) != null) {
      return Boolean.getBoolean(PropertyNames.ALLOW_INSECURE_REGISTRIES);
    }
    return allowInsecureRegistries.get();
  }
Should be called using {@link org.gradle.api.plugins.ExtensionContainer#create}.

@param project the injected gradle project
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibExtension.java