GROOVY-6815, GROOVY-6829: Added a sanity check on version number