This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 330e6217542 kie-issues#4049: migrate CI/CD pipelines to Java 21 (Phase
2) (#4030)
330e6217542 is described below
commit 330e621754227bc741a70f3b658613b247e91afc
Author: Kusuma04-dev <[email protected]>
AuthorDate: Tue Oct 27 09:36:00 2026 +0530
kie-issues#4049: migrate CI/CD pipelines to Java 21 (Phase 2) (#4030)
Co-authored-by: Kusuma <[email protected]>
---
.ci/incubator-kie-tools-ci-build.Dockerfile | 2 +-
.github/actions/setup-env/action.yml | 4 ++--
.github/workflows/ci_build.yml | 17 +++++++++++++----
.github/workflows/ci_check_license_headers.yaml | 4 ++--
4 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/.ci/incubator-kie-tools-ci-build.Dockerfile
b/.ci/incubator-kie-tools-ci-build.Dockerfile
index 7dcb5d47329..b21c1a1c5e6 100644
--- a/.ci/incubator-kie-tools-ci-build.Dockerfile
+++ b/.ci/incubator-kie-tools-ci-build.Dockerfile
@@ -93,7 +93,7 @@ RUN source $HOME/.nvm/nvm.sh && \
# Maven setup
RUN curl -s "https://get.sdkman.io" | bash && \
source "$HOME/.sdkman/bin/sdkman-init.sh" && \
- sdk install java 17.0.11-tem && \
+ sdk install java 21.0.7-tem && \
sudo update-alternatives --install /usr/local/bin/java java $(which java)
1 && \
sdk install maven 3.9.16 && \
sudo update-alternatives --install /usr/local/bin/mvn mvn $(which mvn) 1
&& \
diff --git a/.github/actions/setup-env/action.yml
b/.github/actions/setup-env/action.yml
index 15de3e804d3..e2d63261e7f 100644
--- a/.github/actions/setup-env/action.yml
+++ b/.github/actions/setup-env/action.yml
@@ -70,10 +70,10 @@ runs:
shell: bash
run: npm -g install [email protected]
- - name: "Setup JDK 17"
+ - name: "Setup JDK 21"
uses: actions/setup-java@v4
with:
- java-version: 17
+ java-version: 21
distribution: "temurin"
- name: "Set up GOLANG 1.26.7"
diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml
index b6a427e5277..0931a628200 100644
--- a/.github/workflows/ci_build.yml
+++ b/.github/workflows/ci_build.yml
@@ -36,12 +36,13 @@ env:
jobs:
run:
- if: github.event.pull_request.draft == false
+ if: ${{ !github.event.pull_request || github.event.pull_request.draft ==
false }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
partition: [0]
+ java: [17, 21]
runs-on: ${{ matrix.os }}
steps:
- name: "Support longpaths"
@@ -49,10 +50,11 @@ jobs:
run: git config --system core.longpaths true
- name: "Checkout @ GitHub default"
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: "Checkout @ Simulated squashed-merge if PR"
id: checkout_pr
+ if: github.event_name == 'pull_request'
uses: ./.github/actions/checkout-pr
with:
ref: ${{ github.base_ref }}
@@ -85,8 +87,8 @@ jobs:
--outputPath='/tmp/partitions.json' \
--tmpPartitionFilterPath='/tmp/partition-filter.txt' \
--forceFull='${{ !github.event.pull_request }}' \
- --baseSha='${{ steps.checkout_pr.outputs.base_sha }}' \
- --headSha='${{steps.checkout_pr.outputs.head_sha }}' \
+ --baseSha='${{ steps.checkout_pr.outputs.base_sha ||
github.event.before }}' \
+ --headSha='${{ steps.checkout_pr.outputs.head_sha || github.sha
}}' \
--graphJsonPath='./repo/graph.json'
npm -g uninstall bun turbo
@@ -104,6 +106,13 @@ jobs:
if: steps.setup_build_mode.outputs.mode != 'none'
uses: ./.github/actions/setup-env
+ - name: "Override JDK to Java ${{ matrix.java }}"
+ if: steps.setup_build_mode.outputs.mode != 'none' && matrix.java != 21
+ uses: actions/setup-java@v4
+ with:
+ java-version: ${{ matrix.java }}
+ distribution: "temurin"
+
- name: "Bootstrap"
if: steps.setup_build_mode.outputs.mode != 'none'
env:
diff --git a/.github/workflows/ci_check_license_headers.yaml
b/.github/workflows/ci_check_license_headers.yaml
index a5f3bc52450..dc933e11821 100644
--- a/.github/workflows/ci_check_license_headers.yaml
+++ b/.github/workflows/ci_check_license_headers.yaml
@@ -37,10 +37,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6
- - name: "Setup JDK 17"
+ - name: "Setup JDK 21"
uses: actions/setup-java@v5
with:
- java-version: 17
+ java-version: 21
distribution: "temurin"
- name: Cache Apache RAT
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]