Moved versioning stuff into a separate java file so that dollar sign characters in other source files don't conflict with the gradle replace task