Skip to content

Commit

Permalink
Enforce that the build uses the maven version that is defined in the …
Browse files Browse the repository at this point in the history
…wrapper (#18207)

* Enforce the same maven version defined for the wrapper

* change open build to use maven wrapper
  • Loading branch information
mpfz0r authored Feb 20, 2024
1 parent 1c06593 commit ba70caf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
cache: maven
- name: License check
run: mvn -B --fail-fast license:check
run: ./mvnw -B --fail-fast license:check
- name: Build with Maven
run: mvn -B --fail-fast -Pedantic -Dspotbugs.skip -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 verify javadoc:javadoc
run: ./mvnw -B --fail-fast -Pedantic -Dspotbugs.skip -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 verify javadoc:javadoc
env:
JAVA_OPTS: -Xmx6G
TIMEOUT_MULTIPLIER: 2.0
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,8 @@
</bannedDependencies>
<banDuplicatePomDependencyVersions/>
<requireMavenVersion>
<version>[3.6.0,)</version>
<!-- Enforce the same version we define in the maven wrapper -->
<version>[3.9.6]</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[17.0,17.99]</version>
Expand Down

0 comments on commit ba70caf

Please sign in to comment.