Skip to content

Commit

Permalink
Replaces version with project creation
Browse files Browse the repository at this point in the history
  • Loading branch information
XComp committed Jun 19, 2024
1 parent e8469ae commit 4c35699
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/mavenwrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ jobs:
run-maven-wrapper:
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
include:
- os: 'ubuntu-latest'
cmd: './mvnw'
- os: 'macos-latest'
cmd: './mvnw'
- os: 'windows-latest'
cmd: './mvnw.cmd'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -25,12 +31,8 @@ jobs:
sparse-checkout-cone-mode: false
sparse-checkout: |
.mvn/wrapper/maven-wrapper.properties
.mvn/jvm.config
mvnw
mvnw.cmd
- name: Check Maven version in Unix-based systems
- name: Create dummy project for Unix-based systems
if: matrix.os != 'windows-latest'
run: ./mvnw version
- name: Check Maven version in Windows
if: matrix.os == 'windows-latest'
run: ./mvnw.cmd version
run: ${{ matrix.cmd }} archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4

0 comments on commit 4c35699

Please sign in to comment.