Update distributionManagement to support both release and snapshot repositories.