Add java specific gemspec and extend publish task