Fixed the build script for publishing to maven central