Skip to content

Commit

Permalink
Merge branch 'main' into select_with_from
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored May 9, 2022
2 parents 3e51bca + f06f89a commit 2b5f844
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions scripts/setup/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,37 @@ function install_thrift {
esac
}

function install_jdk {
PACKAGE_MANAGER=$1

echo "==> installing java development kit..."

case "$PACKAGE_MANAGER" in
apt-get)
install_pkg openjdk-11-jre-headless "$PACKAGE_MANAGER"
;;
pacman)
install_pkg jre11-openjdk-headless "$PACKAGE_MANAGER"
;;
apk)
install_pkg openjdk11 "$PACKAGE_MANAGER"
;;
yum)
install_pkg java-11-openjdk "$PACKAGE_MANAGER"
;;
dnf)
install_pkg java-11-openjdk "$PACKAGE_MANAGER"
;;
brew)
install_pkg java11 "$PACKAGE_MANAGER"
;;
*)
echo "Unable to install jdk with package manager: $PACKAGE_MANAGER"
exit 1
;;
esac
}

function install_pkg_config {
PACKAGE_MANAGER=$1

Expand Down Expand Up @@ -455,6 +486,7 @@ if [[ "$INSTALL_BUILD_TOOLS" == "true" ]]; then
install_openssl "$PACKAGE_MANAGER"
install_protobuf "$PACKAGE_MANAGER"
install_thrift "$PACKAGE_MANAGER"
install_jdk "$PACKAGE_MANAGER"

install_pkg cmake "$PACKAGE_MANAGER"
install_pkg clang "$PACKAGE_MANAGER"
Expand Down

0 comments on commit 2b5f844

Please sign in to comment.