Skip to content

Commit

Permalink
Install Java 17 in CircleCI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Jul 25, 2023
1 parent e3914fa commit 2476fd9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ commands:
nvm alias default $(nvm current)
# Enforce to use the default version in the rest of workflow
echo 'nvm use default' >> $BASH_ENV
install-java-17:
steps:
- run:
name: Install Java 17
command: |
sudo apt-get update && sudo apt-get install -y openjdk-17-jdk
echo 'export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64' >> $BASH_ENV
echo 'export JDK_HOME=${JAVA_HOME}' >> $BASH_ENV
echo 'export JRE_HOME=${JDK_HOME}' >> $BASH_ENV
parameters:
android-docker-image:
Expand Down Expand Up @@ -213,6 +222,7 @@ jobs:
steps:
- checkout-shallow
- checkout-submodules
- install-java-17
- install-node-version
- run: node -v
- npm-install
Expand Down Expand Up @@ -250,6 +260,7 @@ jobs:
steps:
- checkout-shallow
- checkout-submodules
- install-java-17
- install-node-version
- run: node -v
- npm-install-e2e-tests
Expand All @@ -276,6 +287,7 @@ jobs:
steps:
- checkout-shallow
- checkout-submodules
- install-java-17
- install-node-version
- npm-install
- run:
Expand Down

0 comments on commit 2476fd9

Please sign in to comment.