mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-17 00:00:10 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f7fb9d967 | |||
| 31c80e7249 | |||
| 232c434257 | |||
| 9a27433d28 |
22
README.md
22
README.md
@ -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
|
||||||
|
|
||||||
@ -77,16 +78,17 @@ So we can use for action:
|
|||||||
|
|
||||||
## maven-settings-action
|
## maven-settings-action
|
||||||
|
|
||||||
| params | destination |
|
| params | destination |
|
||||||
|----------------------------|-------------------|
|
|-----------------------------|--------------------|
|
||||||
| settings-servers | servers |
|
| settings-servers | servers |
|
||||||
| settings-mirrors | mirrors |
|
| settings-mirrors | mirrors |
|
||||||
| settings-properties | properties |
|
| settings-properties | properties |
|
||||||
| settings-sonatypeSnapshots | sonatypeSnapshots |
|
| settings-sonatypeSnapshots | sonatypeSnapshots |
|
||||||
| settings-proxies | proxies |
|
| settings-proxies | proxies |
|
||||||
| settings-repositories | repositories |
|
| settings-repositories | repositories |
|
||||||
| settings-githubServer | githubServer |
|
| settings-pluginRepositories | pluginRepositories |
|
||||||
| settings-path | path |
|
| settings-githubServer | githubServer |
|
||||||
|
| settings-path | path |
|
||||||
|
|
||||||
# Testing against different Maven versions
|
# Testing against different Maven versions
|
||||||
|
|
||||||
|
|||||||
14
action.yml
14
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'
|
||||||
@ -110,6 +114,10 @@ inputs:
|
|||||||
description: 'repository settings definition in json array, e.g.: [ { "id": "repoId","name": "repoName","url": "url","snapshots": { "enabled": true } } ]'
|
description: 'repository settings definition in json array, e.g.: [ { "id": "repoId","name": "repoName","url": "url","snapshots": { "enabled": true } } ]'
|
||||||
required: false
|
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:
|
settings-githubServer:
|
||||||
description: 'add to settings.xml servers server-id: github; username=$GITHUB_ACTOR and password=$GITHUB_TOKEN'
|
description: 'add to settings.xml servers server-id: github; username=$GITHUB_ACTOR and password=$GITHUB_TOKEN'
|
||||||
default: "true"
|
default: "true"
|
||||||
@ -136,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@7a6d8a8234af8eb26422e24e3006232cccaa061b
|
||||||
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@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
if: inputs.cache-enabled == 'true'
|
if: inputs.cache-enabled == 'true'
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
@ -169,5 +178,6 @@ runs:
|
|||||||
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots }}'
|
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots }}'
|
||||||
proxies: '${{ inputs.settings-proxies }}'
|
proxies: '${{ inputs.settings-proxies }}'
|
||||||
repositories: '${{ inputs.settings-repositories }}'
|
repositories: '${{ inputs.settings-repositories }}'
|
||||||
|
pluginRepositories: '${{ inputs.settings-pluginRepositories }}'
|
||||||
githubServer: '${{ inputs.settings-githubServer }}'
|
githubServer: '${{ inputs.settings-githubServer }}'
|
||||||
path: '${{ inputs.settings-path }}'
|
path: '${{ inputs.settings-path }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user