Skip to content

Commit

Permalink
Add Java installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg committed Sep 21, 2019
1 parent 27a06f4 commit dc35628
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/install-java.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -ex
export ADOPTOPENJDK=${JAVA_VERSION:-8}
curl -sL https://get.sdkman.io | bash
echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java $(sdk list java | grep -o "$ADOPTOPENJDK\.[0-9\.]*hs-adpt" | head -1)
unset JAVA_HOME
java -Xmx32m -version
git fetch --tags

0 comments on commit dc35628

Please sign in to comment.