add platform = java to gemspec