Skip to content

Commit

Permalink
Java 11 in the release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkowalcz committed Dec 21, 2024
1 parent 796840e commit 0e0ea57
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@ version: 2.1
orbs:
circleci-maven-release-orb: sonatype-nexus-community/[email protected]

executors:
new-java-maven-executor:
machine:
image: ubuntu-2204:2024.11.1

jobs:
build-and-test:
executor: new-java-maven-executor
machine:
image: ubuntu-2204:2024.11.1
steps:
- run:
name: Install OpenJDK 11
Expand Down Expand Up @@ -59,20 +55,10 @@ jobs:
- store_test_results:
path: ~/test-results

release:
executor: new-java-maven-executor
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
- circleci-maven-release-orb/run-maven-release:
mvn-release-perform-command: >-
mvn --batch-mode release:perform -DskipTests -s .circleci/.maven.xml
executors:
new-java-maven-executor:
docker:
- image: cimg/openjdk:11.0.25
parameters:
run_workflow_release:
default: false
Expand All @@ -87,4 +73,9 @@ workflows:
when: << pipeline.parameters.run_workflow_release >>
jobs:
- build-and-test
- release
- circleci-maven-release-orb/run-maven-release:
requires:
- 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 0e0ea57

Please sign in to comment.