elasticsearch: bump Java requirement.

Closes #32224.