Updated script that allows to publish to maven central