cleaning up gradle scripts a little, adding maven repo generation for publishing