Follow the link to install JDK 8 or 11.
Or use SDKMAN!:
$ sdk install java $(sdk list java | grep -o "8\.[0-9]*\.[0-9]*\.hs-adpt" | head -1)
$ sdk install sbt
Note: Third-party packages may not provide the latest version. Please make sure to report any issues with these packages to the relevant maintainers.
$ brew install sbt