Merge pull request elastic#18047 from rjernst/javac_target …
Build: Explicitly set target and source compatibility for javac