Adds a preRelease task to prevent duplicate publishing of released artifact versions.