public void platform(Action<? super PlatformParameters> action) {
    PlatformParameters platform = objectFactory.newInstance(PlatformParameters.class);
    action.execute(platform);
    platforms.add(platform);
  }
Adds a new platform configuration to the platforms list.

@param action closure representing a platform configuration
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/PlatformParametersSpec.java