Install OpenJDK on MacOS

$ brew tap adoptopenjdk/openjdk
$ brew search jdk
$ brew install --cask adoptopenjdk11