forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set maven to 3.9 in Github workflow (OpenAPITools#15592)
* set maven to 3.9 * add java version * fix maven version * fix java version
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,12 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Setup Maven | ||
uses: s4u/[email protected] | ||
with: | ||
java-version: ${{ matrix.java }} | ||
maven-version: 3.9.0 | ||
|
||
- name: Build with Maven | ||
shell: bash | ||
run: mvn -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress clean install --file pom.xml | ||
|
@@ -80,6 +86,11 @@ jobs: | |
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Setup Maven | ||
uses: s4u/[email protected] | ||
with: | ||
java-version: 11 | ||
maven-version: 3.9.0 | ||
- name: Download build artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,11 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
- name: Setup Maven | ||
uses: s4u/[email protected] | ||
with: | ||
java-version: ${{ matrix.java }} | ||
maven-version: 3.9.0 | ||
- name: Run maven | ||
run: mvn --no-snapshot-updates --batch-mode --quiet install | ||
env: | ||
|