mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-13 00:05:10 +08:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b03f80a9bf | |||
| bf6bdba903 | |||
| 6c4e9964d4 | |||
| 6ad09a30aa | |||
| 64c378ccfd | |||
| 53c9cfd053 | |||
| 99433ad2a6 | |||
| 4a57038947 | |||
| cadd5249e2 | |||
| 194b328cfe | |||
| 7227538596 | |||
| e49e3fe78c | |||
| b77843ff24 | |||
| a8a4c2d97e | |||
| 4f7fb9d967 | |||
| 31c80e7249 | |||
| 232c434257 | |||
| 9a27433d28 |
1
.github/workflows/release-drafter.yml
vendored
1
.github/workflows/release-drafter.yml
vendored
@ -5,6 +5,7 @@ on:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'main'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
|
||||
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -19,13 +19,13 @@ jobs:
|
||||
matrix:
|
||||
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
||||
java: [ '8', '11', '17', '21' ]
|
||||
maven: [ '3.8.8', '3.9.9' ]
|
||||
maven: [ '3.8.8', '3.9.11' ]
|
||||
fail-fast: false
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
|
||||
- uses: ./
|
||||
with:
|
||||
@ -41,11 +41,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
|
||||
- uses: ./
|
||||
|
||||
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.9
|
||||
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.11
|
||||
shell: bash
|
||||
|
||||
test-ok:
|
||||
|
||||
24
README.md
24
README.md
@ -44,6 +44,7 @@ For default values you only need:
|
||||
|-------------------|--------------|---------|
|
||||
| java-version | java-version | 17 |
|
||||
| java-distribution | distribution | zulu |
|
||||
| java-jdkFile | jdkFile | |
|
||||
|
||||
## cache
|
||||
|
||||
@ -73,20 +74,21 @@ So we can use for action:
|
||||
|
||||
| params | destination | default |
|
||||
|---------------|---------------|---------|
|
||||
| maven-version | maven-version | 3.9.9 |
|
||||
| maven-version | maven-version | 3.9.11 |
|
||||
|
||||
## maven-settings-action
|
||||
|
||||
| params | destination |
|
||||
|----------------------------|-------------------|
|
||||
| settings-servers | servers |
|
||||
| settings-mirrors | mirrors |
|
||||
| settings-properties | properties |
|
||||
| settings-sonatypeSnapshots | sonatypeSnapshots |
|
||||
| settings-proxies | proxies |
|
||||
| settings-repositories | repositories |
|
||||
| settings-githubServer | githubServer |
|
||||
| settings-path | path |
|
||||
| params | destination |
|
||||
|-----------------------------|--------------------|
|
||||
| settings-servers | servers |
|
||||
| settings-mirrors | mirrors |
|
||||
| settings-properties | properties |
|
||||
| settings-sonatypeSnapshots | sonatypeSnapshots |
|
||||
| settings-proxies | proxies |
|
||||
| settings-repositories | repositories |
|
||||
| settings-pluginRepositories | pluginRepositories |
|
||||
| settings-githubServer | githubServer |
|
||||
| settings-path | path |
|
||||
|
||||
# Testing against different Maven versions
|
||||
|
||||
|
||||
20
action.yml
20
action.yml
@ -60,6 +60,10 @@ inputs:
|
||||
default: 'zulu'
|
||||
required: false
|
||||
|
||||
java-jdkFile:
|
||||
description: 'Java JDK compressed file location'
|
||||
required: false
|
||||
|
||||
# cache
|
||||
cache-enabled:
|
||||
description: 'Enable cache'
|
||||
@ -82,7 +86,7 @@ inputs:
|
||||
# maven version
|
||||
maven-version:
|
||||
description: 'The Maven version to set up'
|
||||
default: '3.9.9'
|
||||
default: '3.9.11'
|
||||
required: false
|
||||
|
||||
# maven settings.xml
|
||||
@ -110,6 +114,10 @@ inputs:
|
||||
description: 'repository settings definition in json array, e.g.: [ { "id": "repoId","name": "repoName","url": "url","snapshots": { "enabled": true } } ]'
|
||||
required: false
|
||||
|
||||
settings-pluginRepositories:
|
||||
description: 'plugin repository settings definition in json array, e.g.: [{"id":"repoId","name":"repoName","url":"url","snapshots":{"enabled":true}}]'
|
||||
required: false
|
||||
|
||||
settings-githubServer:
|
||||
description: 'add to settings.xml servers server-id: github; username=$GITHUB_ACTOR and password=$GITHUB_TOKEN'
|
||||
default: "true"
|
||||
@ -124,7 +132,7 @@ runs:
|
||||
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
if: inputs.checkout-enabled == 'true'
|
||||
with:
|
||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||
@ -136,13 +144,14 @@ runs:
|
||||
token: '${{ inputs.checkout-token }}'
|
||||
ssh-key: '${{ inputs.checkout-ssh-key }}'
|
||||
|
||||
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
|
||||
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654
|
||||
with:
|
||||
overwrite-settings: false
|
||||
java-version: '${{ inputs.java-version }}'
|
||||
distribution: '${{ inputs.java-distribution }}'
|
||||
jdkFile: '${{ inputs.java-jdkFile }}'
|
||||
|
||||
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
|
||||
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
if: inputs.cache-enabled == 'true'
|
||||
with:
|
||||
path: |
|
||||
@ -161,7 +170,7 @@ runs:
|
||||
with:
|
||||
maven-version: '${{ inputs.maven-version }}'
|
||||
|
||||
- uses: s4u/maven-settings-action@64e42c454dbd42ef6370ac8539685755aedd205b # v3.1.0
|
||||
- uses: s4u/maven-settings-action@894661b3ddae382f1ae8edbeab60987e08cf0788 # v4.0.0
|
||||
with:
|
||||
servers: '${{ inputs.settings-servers }}'
|
||||
mirrors: '${{ inputs.settings-mirrors }}'
|
||||
@ -169,5 +178,6 @@ runs:
|
||||
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots }}'
|
||||
proxies: '${{ inputs.settings-proxies }}'
|
||||
repositories: '${{ inputs.settings-repositories }}'
|
||||
pluginRepositories: '${{ inputs.settings-pluginRepositories }}'
|
||||
githubServer: '${{ inputs.settings-githubServer }}'
|
||||
path: '${{ inputs.settings-path }}'
|
||||
|
||||
Reference in New Issue
Block a user