Changed the next things

def globalVersion = new Version('1.2.x-SNAPSHOT')   to 
def globalVersion = new Version(currentVersion)