Skip to content

Commit c3f7ff2

Browse files
committed
Use mvnw in all workflows
See b43bf03 Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
1 parent e59dab1 commit c3f7ff2

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
cache: 'maven'
2020

2121
- name: Build
22-
run: mvn verify
22+
run: ./mvnw verify
2323

2424
jackson2-tests:
2525
name: Jackson 2 Integration Tests
@@ -36,4 +36,4 @@ jobs:
3636
cache: 'maven'
3737

3838
- name: Jackson 2 Integration Tests
39-
run: mvn -pl mcp-test -am -Pjackson2 test
39+
run: ./mvnw -pl mcp-test -am -Pjackson2 test

‎.github/workflows/conformance.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222

2323
- name: Build and start server
2424
run: |
25-
mvn clean install -DskipTests
26-
mvn exec:java -pl conformance-tests/server-servlet -Dexec.mainClass="io.modelcontextprotocol.conformance.server.ConformanceServlet" &
25+
./mvnw clean install -DskipTests
26+
./mvnw exec:java -pl conformance-tests/server-servlet -Dexec.mainClass="io.modelcontextprotocol.conformance.server.ConformanceServlet" &
2727
timeout 30 bash -c 'until curl -s http://localhost:8080/mcp > /dev/null 2>&1; do sleep 0.5; done'
2828
2929
- name: Run conformance tests
@@ -51,7 +51,7 @@ jobs:
5151
cache: 'maven'
5252

5353
- name: Build client
54-
run: mvn clean install -DskipTests
54+
run: ./mvnw clean install -DskipTests
5555

5656
- name: Run conformance test
5757
uses: modelcontextprotocol/conformance@v0.1.11

‎.github/workflows/docs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Deploy docs (push to main)
3838
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
3939
run: |
40-
PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version --quiet -DforceStdout)
40+
PROJECT_VERSION=$(./mvnw help:evaluate -Dexpression=project.version --quiet -DforceStdout)
4141
if [[ "${PROJECT_VERSION}" == *-SNAPSHOT ]]; then
4242
ALIAS="latest-snapshot"
4343
else

‎.github/workflows/maven-central-release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ jobs:
2727
node-version: '20'
2828

2929
- name: Jackson 3 Integration Tests
30-
run: mvn -pl mcp-test -am -Pjackson3 test
30+
run: ./mvnw -pl mcp-test -am -Pjackson3 test
3131

3232
- name: Build and Test
33-
run: mvn clean verify
33+
run: ./mvnw clean verify
3434

3535
- name: Publish to Maven Central
3636
run: |
37-
mvn --batch-mode \
37+
./mvnw --batch-mode \
3838
-Prelease \
3939
-Pjavadoc \
4040
deploy

‎.github/workflows/publish-snapshot.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ jobs:
3030
node-version: '20'
3131

3232
- name: Generate Java docs
33-
run: mvn -Pjavadoc -B javadoc:aggregate
33+
run: ./mvnw -Pjavadoc -B javadoc:aggregate
3434

3535
- name: Jackson 2 Integration Tests
36-
run: mvn -pl mcp-test -am -Pjackson2 test
36+
run: ./mvnw -pl mcp-test -am -Pjackson2 test
3737

3838
- name: Build with Maven and deploy to Sonatype snapshot repository
3939
env:
4040
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
4141
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
4242
MAVEN_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
4343
run: |
44-
mvn -Pjavadoc -Prelease --batch-mode --update-snapshots deploy
44+
./mvnw -Pjavadoc -Prelease --batch-mode --update-snapshots deploy
4545
4646
- name: Capture project version
47-
run: echo PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version --quiet -DforceStdout) >> $GITHUB_ENV
47+
run: echo PROJECT_VERSION=$(./mvnw help:evaluate -Dexpression=project.version --quiet -DforceStdout) >> $GITHUB_ENV

0 commit comments

Comments
 (0)