Skip to content

Commit

Permalink
Ensure correct Java version is set in CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesname committed Oct 10, 2024
1 parent 0ed1e4f commit 637c2df
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,30 @@ jobs:
SMTP_PORT: 2500
SBT_VERSION: 1.10.1
NVM_DIR: /usr/local/nvm
JAVA_HOME: /usr/lib/jvm/java-11-openjdk-amd64

steps:
- checkout

# Install Java
- run:
name: Install Java
command: |
apt-get install -y openjdk-11-jdk
echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' >> $BASH_ENV
echo 'export PATH=$JAVA_HOME/bin:$PATH' >> $BASH_ENV
source $BASH_ENV
java -version
# Install sbt
- run:
name: Get sbt binary
command: |
sudo curl -L -o sbt-$SBT_VERSION.deb https://scala.jfrog.io/artifactory/debian/sbt-$SBT_VERSION.deb
sudo dpkg -i sbt-$SBT_VERSION.deb
sudo rm sbt-$SBT_VERSION.deb
# Install NVM and Node
- run:
name: Install NVM and Node
command: |
Expand Down

0 comments on commit 637c2df

Please sign in to comment.