Skip to content

Commit 1cb550f

Browse files
committed
Use maven wrapper and batch-mode in GitHub Actions
Signed-off-by: Filip Hrisafov <[email protected]>
1 parent 9d1e1b5 commit 1cb550f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/continuous-inspection.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
cache: 'maven'
2323

2424
- name: Analyse test coverage with Jacoco
25-
run: mvn -P test-coverage verify
25+
run: ./mvnw --batch-mode -P test-coverage verify
2626

2727
- name: Analyse code quality with Sonar
2828
if: github.repository == 'spring-projects/spring-ai'
2929
env:
3030
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3131
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
32-
run: mvn sonar:sonar -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN
32+
run: ./mvnw --batch-mode sonar:sonar -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN
3333

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ jobs:
5353
OLLAMA_AUTOCONF_TESTS_ENABLED: "true"
5454
OLLAMA_WITH_REUSE: true
5555
run: |
56-
mvn -s settings.xml -Pci-fast-integration-tests -Pjavadoc -Dfailsafe.rerunFailingTestsCount=3 \
56+
./mvnw -s settings.xml -Pci-fast-integration-tests -Pjavadoc -Dfailsafe.rerunFailingTestsCount=3 \
5757
--batch-mode --update-snapshots deploy
5858
5959
- name: Generate Java docs
60-
run: mvn javadoc:aggregate
60+
run: ./mvnw --batch-mode javadoc:aggregate
6161

6262
- name: Generate assembly
6363
working-directory: spring-ai-docs
64-
run: mvn assembly:single
64+
run: ./mvnw --batch-mode assembly:single
6565

6666
- name: Capture project version
6767
run: echo PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version --quiet -DforceStdout) >> $GITHUB_ENV

.github/workflows/documentation-upload.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
cache: 'maven'
2727

2828
- name: Generate Java docs
29-
run: mvn clean install -DskipTests -Pjavadoc
29+
run: ./mvnw --batch-mode clean install -DskipTests -Pjavadoc
3030

3131
- name: Aggregate Java docs
32-
run: mvn javadoc:aggregate
32+
run: ./mvnw --batch-mode javadoc:aggregate
3333

3434
- name: Generate assembly
3535
working-directory: spring-ai-docs
36-
run: mvn assembly:single
36+
run: ./mvnw --batch-mode assembly:single
3737

3838
- name: Setup SSH key
3939
env:

.github/workflows/pr-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323

2424
- name: Run tests
2525
run: |
26-
./mvnw test
26+
./mvnw --batch-mode test

0 commit comments

Comments
 (0)