Use LOCATIONTECH_RELEASE environment variable in buildswitches between publishing to sonatype and locationtech