mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-04-17 19:42:16 +08:00
Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba34de01b7 | ||
|
|
0015d1cf3d | ||
|
|
87e39a0b1a | ||
|
|
ed02f10aa2 | ||
|
|
b03f80a9bf | ||
|
|
bf6bdba903 | ||
|
|
6c4e9964d4 | ||
|
|
6ad09a30aa | ||
|
|
64c378ccfd | ||
|
|
53c9cfd053 | ||
|
|
99433ad2a6 | ||
|
|
4a57038947 | ||
|
|
cadd5249e2 | ||
|
|
194b328cfe | ||
|
|
7227538596 | ||
|
|
e49e3fe78c | ||
|
|
b77843ff24 | ||
|
|
a8a4c2d97e | ||
|
|
4f7fb9d967 | ||
|
|
31c80e7249 | ||
|
|
232c434257 |
1
.github/workflows/release-drafter.yml
vendored
1
.github/workflows/release-drafter.yml
vendored
@ -5,6 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
- 'main'
|
- 'main'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_release_draft:
|
update_release_draft:
|
||||||
|
|||||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -18,14 +18,14 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
||||||
java: [ '8', '11', '17', '21' ]
|
java: [ '8', '11', '17', '21', '25' ]
|
||||||
maven: [ '3.8.8', '3.9.9' ]
|
maven: [ '3.8.8', '3.9.14' ]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
@ -41,11 +41,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
|
|
||||||
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.9
|
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.14
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
test-ok:
|
test-ok:
|
||||||
|
|||||||
@ -44,6 +44,7 @@ For default values you only need:
|
|||||||
|-------------------|--------------|---------|
|
|-------------------|--------------|---------|
|
||||||
| java-version | java-version | 17 |
|
| java-version | java-version | 17 |
|
||||||
| java-distribution | distribution | zulu |
|
| java-distribution | distribution | zulu |
|
||||||
|
| java-jdkFile | jdkFile | |
|
||||||
|
|
||||||
## cache
|
## cache
|
||||||
|
|
||||||
@ -73,7 +74,7 @@ So we can use for action:
|
|||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
|---------------|---------------|---------|
|
|---------------|---------------|---------|
|
||||||
| maven-version | maven-version | 3.9.9 |
|
| maven-version | maven-version | 3.9.14 |
|
||||||
|
|
||||||
## maven-settings-action
|
## maven-settings-action
|
||||||
|
|
||||||
|
|||||||
17
action.yml
17
action.yml
@ -60,6 +60,10 @@ inputs:
|
|||||||
default: 'zulu'
|
default: 'zulu'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
java-jdkFile:
|
||||||
|
description: 'Java JDK compressed file location'
|
||||||
|
required: false
|
||||||
|
|
||||||
# cache
|
# cache
|
||||||
cache-enabled:
|
cache-enabled:
|
||||||
description: 'Enable cache'
|
description: 'Enable cache'
|
||||||
@ -82,7 +86,7 @@ inputs:
|
|||||||
# maven version
|
# maven version
|
||||||
maven-version:
|
maven-version:
|
||||||
description: 'The Maven version to set up'
|
description: 'The Maven version to set up'
|
||||||
default: '3.9.9'
|
default: '3.9.14'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
# maven settings.xml
|
# maven settings.xml
|
||||||
@ -128,7 +132,7 @@ runs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
if: inputs.checkout-enabled == 'true'
|
if: inputs.checkout-enabled == 'true'
|
||||||
with:
|
with:
|
||||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||||
@ -140,13 +144,14 @@ runs:
|
|||||||
token: '${{ inputs.checkout-token }}'
|
token: '${{ inputs.checkout-token }}'
|
||||||
ssh-key: '${{ inputs.checkout-ssh-key }}'
|
ssh-key: '${{ inputs.checkout-ssh-key }}'
|
||||||
|
|
||||||
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
|
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654
|
||||||
with:
|
with:
|
||||||
overwrite-settings: false
|
overwrite-settings: false
|
||||||
java-version: '${{ inputs.java-version }}'
|
java-version: '${{ inputs.java-version }}'
|
||||||
distribution: '${{ inputs.java-distribution }}'
|
distribution: '${{ inputs.java-distribution }}'
|
||||||
|
jdkFile: '${{ inputs.java-jdkFile }}'
|
||||||
|
|
||||||
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
|
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
||||||
if: inputs.cache-enabled == 'true'
|
if: inputs.cache-enabled == 'true'
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
@ -160,12 +165,12 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
id: current-maven
|
id: current-maven
|
||||||
|
|
||||||
- uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
|
- uses: stCarolas/setup-maven@12eb41b233df95d49b0c11fc1b5bc8312e5d4ce0 # v5.1
|
||||||
if: inputs.maven-version != steps.current-maven.outputs.version
|
if: inputs.maven-version != steps.current-maven.outputs.version
|
||||||
with:
|
with:
|
||||||
maven-version: '${{ inputs.maven-version }}'
|
maven-version: '${{ inputs.maven-version }}'
|
||||||
|
|
||||||
- uses: s4u/maven-settings-action@64e42c454dbd42ef6370ac8539685755aedd205b # v3.1.0
|
- uses: s4u/maven-settings-action@894661b3ddae382f1ae8edbeab60987e08cf0788 # v4.0.0
|
||||||
with:
|
with:
|
||||||
servers: '${{ inputs.settings-servers }}'
|
servers: '${{ inputs.settings-servers }}'
|
||||||
mirrors: '${{ inputs.settings-mirrors }}'
|
mirrors: '${{ inputs.settings-mirrors }}'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user