26 Commits

Author SHA1 Message Date
b03f80a9bf Bump actions/setup-java from 5.1.0 to 5.2.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](f2beeb24e1...be666c2fcd)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 5.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-26 16:01:10 +01:00
bf6bdba903 Bump actions/setup-java from 5.0.0 to 5.1.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](dded088883...f2beeb24e1)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 14:04:25 +01:00
6c4e9964d4 Merge pull request #126 from s4u/mvn-3.9.11
Maven 3.9.11 as default
2025-10-05 13:53:29 +02:00
6ad09a30aa Maven 3.9.11 as default 2025-10-05 10:15:01 +02:00
64c378ccfd Bump s4u/maven-settings-action from 3.1.0 to 4.0.0
Bumps [s4u/maven-settings-action](https://github.com/s4u/maven-settings-action) from 3.1.0 to 4.0.0.
- [Release notes](https://github.com/s4u/maven-settings-action/releases)
- [Commits](64e42c454d...894661b3dd)

---
updated-dependencies:
- dependency-name: s4u/maven-settings-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-30 00:08:27 +02:00
53c9cfd053 Bump actions/setup-java from 4.7.1 to 5.0.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.7.1 to 5.0.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](c5195efecf...dded088883)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-30 00:06:32 +02:00
99433ad2a6 Bump actions/checkout from 4.2.2 to 5.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.2 to 5.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](11bd71901b...08c6903cd8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 23:59:47 +02:00
4a57038947 Bump actions/cache from 4.2.3 to 4.3.0
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.3 to 4.3.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](5a3ec84eff...0057852bfa)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: 4.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 19:18:12 +02:00
cadd5249e2 Bump actions/setup-java from 4.7.0 to 4.7.1
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](3a4f6e1af5...c5195efecf)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 4.7.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 15:03:07 +02:00
194b328cfe Bump actions/cache from 4.2.2 to 4.2.3
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](d4323d4df1...5a3ec84eff)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-24 15:05:51 +01:00
7227538596 Bump actions/cache from 4.2.1 to 4.2.2
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0c907a75c2...d4323d4df1)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 14:44:33 +01:00
e49e3fe78c Bump actions/cache from 4.2.0 to 4.2.1
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](1bd1e32a3b...0c907a75c2)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 16:10:27 +01:00
b77843ff24 Bump actions/setup-java from 4.6.0 to 4.7.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.6.0 to 4.7.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](7a6d8a8234...3a4f6e1af5)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-03 14:21:54 +01:00
a8a4c2d97e File sync from s4u/.github - Add workflow_dispatch to Release Drafter 2025-01-28 19:19:43 +00:00
4f7fb9d967 Bump actions/setup-java from 4.5.0 to 4.6.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](8df1039502...7a6d8a8234)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-23 14:52:40 +01:00
31c80e7249 Add jdkFile (#2) 2024-12-15 12:49:50 +01:00
232c434257 Bump actions/cache from 4.1.2 to 4.2.0
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.2 to 4.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](6849a64899...1bd1e32a3b)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 14:25:53 +01:00
9a27433d28 Add pluginRepositories
Fixes #107
2024-12-06 18:23:59 +01:00
382542f776 support adding settings-path for settings.xml (#95)
Co-authored-by: Slawomir Jaranowski <s.jaranowski@gmail.com>
2024-11-03 17:54:58 +01:00
7520fcc0b4 Bump s4u/maven-settings-action from 3.0.0 to 3.1.0
Bumps [s4u/maven-settings-action](https://github.com/s4u/maven-settings-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/s4u/maven-settings-action/releases)
- [Commits](7802f6aec1...64e42c454d)

---
updated-dependencies:
- dependency-name: s4u/maven-settings-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-03 16:22:51 +01:00
68896192ef feat(settings): 🔐 Add settings-githubServer flag
This maps to the maven-settings-action 'githubServer' flag.

closes #101
2024-11-03 16:17:38 +01:00
f4785d5b29 Bump actions/setup-java from 4.4.0 to 4.5.0
Some checks failed
Release Drafter / Update Release Draft (push) Failing after 1s
Test / Test (11, 3.9.9, ubuntu-latest) (push) Failing after 4m32s
Test / Test (17, 3.8.8, ubuntu-latest) (push) Failing after 4m28s
Test / Test (17, 3.9.9, ubuntu-latest) (push) Failing after 4m53s
Test / Test (11, 3.8.8, ubuntu-latest) (push) Failing after 5m1s
Test / Test (8, 3.9.9, ubuntu-latest) (push) Failing after 1m34s
Test / Test (21, 3.9.9, ubuntu-latest) (push) Failing after 2m50s
Test / Test (8, 3.8.8, ubuntu-latest) (push) Failing after 2m48s
Test / Test (21, 3.8.8, ubuntu-latest) (push) Failing after 3m57s
Test / Test with defaults (push) Failing after 2m31s
Test / Test (11, 3.8.8, macOS-latest) (push) Has been cancelled
Test / Test (11, 3.8.8, windows-latest) (push) Has been cancelled
Test / Test (11, 3.9.9, macOS-latest) (push) Has been cancelled
Test / Test (11, 3.9.9, windows-latest) (push) Has been cancelled
Test / Test (17, 3.8.8, macOS-latest) (push) Has been cancelled
Test / Test (17, 3.8.8, windows-latest) (push) Has been cancelled
Test / Test (17, 3.9.9, macOS-latest) (push) Has been cancelled
Test / Test (17, 3.9.9, windows-latest) (push) Has been cancelled
Test / Test (21, 3.8.8, macOS-latest) (push) Has been cancelled
Test / Test (21, 3.8.8, windows-latest) (push) Has been cancelled
Test / Test (21, 3.9.9, macOS-latest) (push) Has been cancelled
Test / Test (21, 3.9.9, windows-latest) (push) Has been cancelled
Test / Test (8, 3.8.8, macOS-latest) (push) Has been cancelled
Test / Test (8, 3.8.8, windows-latest) (push) Has been cancelled
Test / Test (8, 3.9.9, macOS-latest) (push) Has been cancelled
Test / Test (8, 3.9.9, windows-latest) (push) Has been cancelled
Test / Test OK (push) Has been cancelled
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](b36c23c0d9...8df1039502)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 14:44:19 +01:00
611a8f2746 Bump actions/cache from 4.1.1 to 4.1.2
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](3624ceb22c...6849a64899)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 14:43:10 +01:00
a46d0cb350 Bump actions/checkout from 4.2.1 to 4.2.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](eef61447b9...11bd71901b)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 14:42:56 +01:00
2f6a59136c Bump actions/cache from 4.1.0 to 4.1.1
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](2cdf405574...3624ceb22c)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 15:54:28 +02:00
2e2cbf3053 Bump actions/checkout from 4.2.0 to 4.2.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](d632683dd7...eef61447b9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 15:53:13 +02:00
4 changed files with 46 additions and 20 deletions

View File

@ -5,6 +5,7 @@ on:
branches:
- 'master'
- 'main'
workflow_dispatch:
jobs:
update_release_draft:

View File

@ -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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./
with:
@ -41,11 +41,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- 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:

View File

@ -21,7 +21,7 @@ For default values you only need:
- run: mvn -V ...
```
# Params mapping for sub actions
## checkout
@ -44,6 +44,7 @@ For default values you only need:
|-------------------|--------------|---------|
| java-version | java-version | 17 |
| java-distribution | distribution | zulu |
| java-jdkFile | jdkFile | |
## cache
@ -64,7 +65,7 @@ So we can use for action:
| params | description |
|----------------|----------------------------------------------------------|
| cache-enabled | enable cache. Default true |
| cache-path | default cache path for Maven with value ~/.m2/repository |
| cache-path | default cache path for Maven with value ~/.m2/repository |
| cache-path-add | additional value for cache path |
| cache-prefix | prefix value for `key` and `restore-keys` cache params |
@ -73,18 +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 |
| 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

View File

@ -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,12 +114,25 @@ 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"
required: false
settings-path:
description: 'override default path to settings.xml which is $HOME/.m2/settings.xml'
required: false
runs:
using: 'composite'
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
if: inputs.checkout-enabled == 'true'
with:
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
@ -127,13 +144,14 @@ runs:
token: '${{ inputs.checkout-token }}'
ssh-key: '${{ inputs.checkout-ssh-key }}'
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73
- 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@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
if: inputs.cache-enabled == 'true'
with:
path: |
@ -152,7 +170,7 @@ runs:
with:
maven-version: '${{ inputs.maven-version }}'
- uses: s4u/maven-settings-action@7802f6aec16c9098b4798ad1f1d8ac75198194bd # v3.0.0
- uses: s4u/maven-settings-action@894661b3ddae382f1ae8edbeab60987e08cf0788 # v4.0.0
with:
servers: '${{ inputs.settings-servers }}'
mirrors: '${{ inputs.settings-mirrors }}'
@ -160,3 +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 }}'