Skip to content

Use maven wrapper and batch-mode in GitHub Actions #3841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/continuous-inspection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

6 changes: 3 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/documentation-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:

- name: Run tests
run: |
./mvnw test
./mvnw --batch-mode test