add the gemspec java platform

relates to elasticsearch/logstash#2084