From 3b92380b86a9a6a5cab022a243af72988f2c51de Mon Sep 17 00:00:00 2001 From: Filip Hrisafov Date: Thu, 17 Jul 2025 22:31:29 +0200 Subject: [PATCH] Use maven wrapper and batch-mode in GitHub Actions Signed-off-by: Filip Hrisafov --- .github/workflows/continuous-inspection.yml | 4 ++-- .github/workflows/continuous-integration.yml | 6 +++--- .github/workflows/documentation-upload.yml | 6 +++--- .github/workflows/pr-check.yml | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/continuous-inspection.yml b/.github/workflows/continuous-inspection.yml index 180e8320ea5..29bd85e5302 100644 --- a/.github/workflows/continuous-inspection.yml +++ b/.github/workflows/continuous-inspection.yml @@ -22,12 +22,12 @@ jobs: cache: 'maven' - name: Analyse test coverage with Jacoco - run: mvn -P test-coverage verify + run: ./mvnw --batch-mode -P test-coverage verify - name: Analyse code quality with Sonar if: github.repository == 'spring-projects/spring-ai' env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_URL }} - run: mvn sonar:sonar -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN + run: ./mvnw --batch-mode sonar:sonar -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index c8301af4990..f1ff2f3b4fc 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -53,15 +53,15 @@ jobs: OLLAMA_AUTOCONF_TESTS_ENABLED: "true" OLLAMA_WITH_REUSE: true run: | - mvn -s settings.xml -Pci-fast-integration-tests -Pjavadoc -Dfailsafe.rerunFailingTestsCount=3 \ + ./mvnw -s settings.xml -Pci-fast-integration-tests -Pjavadoc -Dfailsafe.rerunFailingTestsCount=3 \ --batch-mode --update-snapshots deploy - name: Generate Java docs - run: mvn javadoc:aggregate + run: ./mvnw --batch-mode javadoc:aggregate - name: Generate assembly working-directory: spring-ai-docs - run: mvn assembly:single + run: ./mvnw --batch-mode assembly:single - name: Capture project version run: echo PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version --quiet -DforceStdout) >> $GITHUB_ENV diff --git a/.github/workflows/documentation-upload.yml b/.github/workflows/documentation-upload.yml index 8db9bc63205..dc79c34bf64 100644 --- a/.github/workflows/documentation-upload.yml +++ b/.github/workflows/documentation-upload.yml @@ -26,14 +26,14 @@ jobs: cache: 'maven' - name: Generate Java docs - run: mvn clean install -DskipTests -Pjavadoc + run: ./mvnw --batch-mode clean install -DskipTests -Pjavadoc - name: Aggregate Java docs - run: mvn javadoc:aggregate + run: ./mvnw --batch-mode javadoc:aggregate - name: Generate assembly working-directory: spring-ai-docs - run: mvn assembly:single + run: ./mvnw --batch-mode assembly:single - name: Setup SSH key env: diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index a0f0361cf50..7f15006d8b6 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -23,4 +23,4 @@ jobs: - name: Run tests run: | - ./mvnw test + ./mvnw --batch-mode test