Replace publishing logic with nexus plugin