Adding few missing require statement for Publish task.