This is an automated email from the ASF dual-hosted git repository.

apupier pushed a commit to branch camel-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.18.x by this push:
     new b1c6c6850e25 Support JDK 17 for detecting Maven dependencies update
b1c6c6850e25 is described below

commit b1c6c6850e25693003271b592f411e17a3e49c7f
Author: Aurélien Pupier <[email protected]>
AuthorDate: Wed Jun 3 09:28:32 2026 +0200

    Support JDK 17 for detecting Maven dependencies update
    
    It will allow to trigger test when there is a backport of dependency
    upgrade
    
    Signed-off-by: Aurélien Pupier <[email protected]>
---
 .github/actions/detect-dependencies/action.yaml    | 5 +++++
 .github/actions/detect-dependencies/detect-test.sh | 3 ++-
 .github/workflows/pr-build-main.yml                | 1 +
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/.github/actions/detect-dependencies/action.yaml 
b/.github/actions/detect-dependencies/action.yaml
index c47a44a569fb..ba2ffdadbc72 100644
--- a/.github/actions/detect-dependencies/action.yaml
+++ b/.github/actions/detect-dependencies/action.yaml
@@ -21,6 +21,10 @@ inputs:
   github-token:
     description: 'The github token to access to the API'
     required: false
+    maven-extra-args:
+      description: 'Extra Maven arguments to pass to the build (e.g. 
-Denforcer.phase=none)'
+      required: false
+      default: ''
 runs:
   using: "composite"
   steps:
@@ -31,5 +35,6 @@ runs:
     - name: maven test
       env:
         GITHUB_TOKEN: ${{ inputs.github-token }}
+        MAVEN_EXTRA_ARGS: ${{ inputs.maven-extra-args }}
       shell: bash
       run: ${{ github.action_path }}/detect-test.sh ${{ github.base_ref }} ${{ 
steps.install-mvnd.outputs.mvnd-dir }}/mvnd
diff --git a/.github/actions/detect-dependencies/detect-test.sh 
b/.github/actions/detect-dependencies/detect-test.sh
index d162c5b8e4b8..760dc2342876 100755
--- a/.github/actions/detect-dependencies/detect-test.sh
+++ b/.github/actions/detect-dependencies/detect-test.sh
@@ -64,6 +64,7 @@ find_affected_modules() {
 
 main() {
   echo "Using MVND_OPTS=$MVND_OPTS"
+  echo "Using MAVEN_EXTRA_ARGS=${MAVEN_EXTRA_ARGS:-}"
   local base_branch=${1}
   local mavenBinary=${2}
   local 
exclusionList="!:camel-allcomponents,!:dummy-component,!:camel-catalog,!:camel-catalog-console,!:camel-catalog-lucene,!:camel-catalog-maven,!:camel-catalog-suggest,!:camel-route-parser,!:camel-csimple-maven-plugin,!:camel-report-maven-plugin,!:camel-endpointdsl,!:camel-componentdsl,!:camel-endpointdsl-support,!:camel-yaml-dsl,!:camel-kamelet-main,!:camel-yaml-dsl-deserializers,!:camel-yaml-dsl-maven-plugin,!:camel-jbang-core,!:camel-jbang-main,!:camel-jbang-plugin-generate,!:came
 [...]
@@ -90,7 +91,7 @@ main() {
   fi
 
   echo "🧪 Testing the following modules $modules_affected and its dependents"
-  $mavenBinary $MVND_OPTS clean test -pl "$modules_affected$exclusionList" -amd
+  $mavenBinary $MVND_OPTS $MAVEN_EXTRA_ARGS clean test -pl 
"$modules_affected$exclusionList" -amd
 }
 
 main "$@"
diff --git a/.github/workflows/pr-build-main.yml 
b/.github/workflows/pr-build-main.yml
index e750ea62ab6a..1bef10ec97b1 100644
--- a/.github/workflows/pr-build-main.yml
+++ b/.github/workflows/pr-build-main.yml
@@ -90,3 +90,4 @@ jobs:
         uses: ./.github/actions/detect-dependencies
         with:
           github-token: ${{ secrets.GITHUB_TOKEN }}
+          maven-extra-args: ${{ matrix.maven_extra_args || '' }}

Reply via email to