Skip to content

Commit

Permalink
Re #134: Using java11 in CircleCI builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkowalcz committed Dec 20, 2024
1 parent 19d2c21 commit 5ff4a7c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ jobs:
machine:
image: ubuntu-2204:2024.11.1
steps:
- run:
name: Install OpenJDK 11
command: |
sudo apt-get update && sudo apt-get install openjdk-11-jdk
sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac
java -version
- checkout

# Download and cache dependencies
Expand Down Expand Up @@ -51,7 +58,7 @@ jobs:
executors:
new-java-maven-executor:
machine:
image: ubuntu-2004:202008-01
image: ubuntu-2204:2024.11.1

parameters:
run_workflow_release:
Expand All @@ -69,7 +76,7 @@ workflows:
- build-and-test
- circleci-maven-release-orb/run-maven-release:
requires:
- build-and-test
- build-and-test
executor: new-java-maven-executor
mvn-release-perform-command: >-
mvn --batch-mode release:perform -DskipTests -s .circleci/.maven.xml

0 comments on commit 5ff4a7c

Please sign in to comment.