Update metadata.rb

Depends on cookbook java, but supporse there's without problem with java 1.10.0 and later.