Skip to content

Commit

Permalink
use Maven Wrapper to run build with a fix Maven version across differ…
Browse files Browse the repository at this point in the history
…ent systems
  • Loading branch information
oliverlietz committed Oct 11, 2023
1 parent 1db30dd commit c22ad76
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ jobs:
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- run: mvn -B verify --no-transfer-progress --file pom.xml
- run: mvn wrapper:wrapper
- run: ./mvnw verify --batch-mode --no-transfer-progress --file pom.xml
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
.settings
/.idea
/target
/.mvn/wrapper/maven-wrapper.jar
/mvnw
/mvnw.cmd
18 changes: 18 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<version>8</version>
</requireJavaVersion>
<requireMavenVersion>
<version>3.8.8</version>
<version>3.9.5</version>
</requireMavenVersion>
</rules>
</configuration>
Expand Down

0 comments on commit c22ad76

Please sign in to comment.