add gradle jar and publish tasks