Skip to content

Commit

Permalink
Updating java
Browse files Browse the repository at this point in the history
  • Loading branch information
cram-cfa committed Nov 26, 2024
1 parent 2f81371 commit 6b388db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else
fi

echo 'Installing brew packages'
brew install --cask temurin@17
brew install --cask temurin@21
brew install jenv gradle postgresql@14

# Install jenv in either the .bashrc or zshrc, whichever is present
Expand All @@ -38,9 +38,9 @@ if [[ $(uname -m) == 'arm64' ]]; then
eval "$(jenv init -)"
fi

# Check if jenv can find java 17
if ! jenv versions | grep -q 17; then
jenv add /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
# Check if jenv can find java 21
if ! jenv versions | grep -q 21; then
jenv add /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
fi

# If the postgres service isn't running in brew, start it
Expand Down

0 comments on commit 6b388db

Please sign in to comment.