Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure correct Java version is set in CircleCI config #1520

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading