Skip to content

Instantly share code, notes, and snippets.

@martinschneider
Created May 5, 2019 06:49
Show Gist options
  • Save martinschneider/1fea64693e0b0af917fdf4d298d0f15d to your computer and use it in GitHub Desktop.
Save martinschneider/1fea64693e0b0af917fdf4d298d0f15d to your computer and use it in GitHub Desktop.
phases:
install:
commands:
# AWS still only supports Java 8, so we install Java 12 ourselves
# https://forums.aws.amazon.com/thread.jspa?threadID=299604
- wget -q https://download.java.net/java/GA/jdk12/GPL/openjdk-12_linux-x64_bin.tar.gz
- tar -xzf openjdk-12_linux-x64_bin.tar.gz
- export JAVA_HOME=$(pwd)/jdk-12
- export PATH=$(pwd)/jdk-12/bin:$PATH
- which java
- java -version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment