removed SNAPSHOT dependency
Port of SetMetadataTask