152 Commits

Author SHA1 Message Date
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
a37cecafbf Bump actions/cache from 4.0.2 to 4.1.0
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.2 to 4.1.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0c45773b62...2cdf405574)

---
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-10-05 18:01:38 +02:00
a4199cab67 Merge pull request #93 from s4u/pin-setup-java
Pin setup-java to latest SHA
2024-10-05 17:52:50 +02:00
787523041c Merge pull request #92 from s4u/mvn-3.9.9
Maven 3.9.9 as default
2024-10-05 17:50:37 +02:00
4aedd0b3b2 Pin setup-java to latest SHA 2024-10-05 17:49:04 +02:00
5f52556e27 Maven 3.9.9 as default 2024-10-05 17:44:20 +02:00
Adi
5eec3f78f3 Add checkout enable boolean (#90)
* Add checkout enable boolean

* Update README.md
2024-10-05 16:05:58 +02:00
4095a894c5 Bump actions/checkout from 4.1.7 to 4.2.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](692973e3d9...d632683dd7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 15:40:49 +02:00
8a09fe4cf2 Merge pull request #86 from afonso-vilela/add-checkout-ssh-key
chore: add checkout-ssh-key as input to allow git commits after the checkout
2024-08-05 22:14:03 +02:00
2b1e091324 Merge pull request #85 from dabico/submodules
Add `checkout-submodules` parameter
2024-08-05 20:36:46 +02:00
2059bfe2f2 chore: add checkout-ssh-key as input to allow git commits after the checkout 2024-08-04 10:59:13 +01:00
6e3103c027 Add option for checking out repository submodules 2024-07-16 16:31:27 +02:00
2f53a7669c Merge pull request #84 from s4u/mvn-3.9.8
Maven 3.9.8 as default
2024-06-29 09:29:19 +02:00
1bea7e41c5 Maven 3.9.8 as default 2024-06-29 09:23:28 +02:00
816f5e6ba8 Configure custom maven repositories 2024-06-29 09:19:04 +02:00
25553285e3 Bump actions/checkout from 4.1.6 to 4.1.7
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.6 to 4.1.7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](a5ac7e51b4...692973e3d9)

---
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-06-17 15:37:39 +02:00
4894416432 Merge pull request #80 from s4u/pin-test
Pin all actions to their current releases' SHA in test
2024-05-17 20:06:22 +02:00
a9992a1ccd Pin all actions to their current releases' SHA in test 2024-05-17 20:00:29 +02:00
3b45b50cd5 Feature/proxy settings (#75)
* Issue 62

* Issue 62
2024-05-17 19:57:17 +02:00
5a52b9da46 Merge pull request #78 from brrygrdn/brrygrdn/pin-composed-actions-versions-by-sha
Pin composed actions to their current releases' SHA
2024-05-17 19:54:43 +02:00
e2f38a4518 Pin all actions to their current releases' SHA 2024-05-17 19:51:52 +02:00
9d09e3987e Merge pull request #79 from s4u/zulu-as-default
Use zulu java distribution as default
2024-05-17 19:50:51 +02:00
f480a422c2 Use zulu java distribution as default
The temurin distribution doesn't support JDK 8 on new macOS runners
2024-05-17 18:03:48 +02:00
6d44c18d67 Merge pull request #73 from s4u/fix-misspell
Fix misspell in test action
2024-02-11 13:37:22 +01:00
9f3d803b4e Fix misspell in test action 2024-02-11 13:26:42 +01:00
023b47f3ae Merge pull request #72 from s4u/mvn396
Maven 3.9.6 as default
2024-02-11 13:00:29 +01:00
5257c30aee Maven 3.9.6 as default 2024-02-11 12:49:28 +01:00
88b5bc7548 Merge pull request #70 from NotMyFault/update-deps-node-20
Update stCarolas/setup-maven to v5
2024-02-11 12:38:27 +01:00
6c5362973d Bump actions/cache from 3 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-11 12:30:38 +01:00
f8353fecf3 Update stCarolas/setup-maven to v5
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-02-11 12:22:35 +01:00
9337884575 Bump s4u/maven-settings-action from 2.8.0 to 3.0.0
Bumps [s4u/maven-settings-action](https://github.com/s4u/maven-settings-action) from 2.8.0 to 3.0.0.
- [Release notes](https://github.com/s4u/maven-settings-action/releases)
- [Commits](https://github.com/s4u/maven-settings-action/compare/v2.8.0...v3.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-01 20:49:36 +01:00
c6cceea941 Bump actions/setup-java from 3 to 4
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-01 20:45:57 +01:00
fa2c7e4517 Merge pull request #64 from s4u/mvn-3.9.5
Maven 3.9.5 as default
2023-11-23 17:52:07 +01:00
78d72295d8 Maven 3.9.5 as default 2023-11-23 17:49:38 +01:00
5727e29093 Added toggle for cache 2023-11-23 17:38:21 +01:00
57ca7f1a81 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 08:40:57 +02:00
41e894b5c6 #58 New feature to support repository and token options (#59) 2023-09-22 08:29:12 +02:00
c1ef1c9458 Merge pull request #57 from s4u/docs
Documentation improvements
2023-08-23 23:02:20 +02:00
fe0723070c Documentation improvements 2023-08-23 22:57:55 +02:00
f416ae1666 Merge pull request #56 from s4u/jdk-default
Java 17 as default
2023-08-23 21:25:04 +02:00
428a7bd6a8 Java 17 as default 2023-08-23 21:13:07 +02:00
7b66d0ca2e Merge pull request #55 from s4u/m394
Maven 3.9.4 as default
2023-08-23 20:47:55 +02:00
2dce5ee2b1 Maven 3.9.4 as default 2023-08-23 20:43:44 +02:00
e912d59387 Add the ability to specify ref for checkout action (#52) 2023-08-17 10:59:46 +02:00
721df57437 Merge pull request #51 from s4u/m392
Maven 3.9.2 as default
2023-06-09 13:43:17 +02:00
21adf11259 Maven 3.9.2 as default 2023-06-09 13:39:57 +02:00
94605e0cdf Merge pull request #50 from s4u/enforcer-3.2.1
Bump m-enforcer-p to 3.2.1, simplify test project
2023-02-22 22:29:49 +01:00
ff947fe3e9 Bump m-enforcer-p to 3.2.1, simplify test project 2023-02-22 22:25:50 +01:00
35afc95be0 Merge pull request #49 from s4u/mvn-3.9.0
Maven 3.9.0 as default
2023-02-22 22:20:33 +01:00
4f918ce4df Maven 3.9.0 as default 2023-02-22 22:15:46 +01:00
e3f10494a8 File sync from s4u/.github - Use shared release-drafter.yml 2022-11-13 09:59:03 +00:00
7cf09e2e6e File sync from s4u/.github - Use shared release-drafter.yml 2022-11-13 09:42:45 +00:00
deb771502d File sync from s4u/.github - 2022-11-13 09:36:02 +00:00
e5734e3ce7 File sync from s4u/.github - 2022-11-13 09:27:48 +00:00
fc8e36b653 Merge pull request #47 from s4u/gh-output
Replace deprecated GH command - set-output
2022-11-13 09:57:32 +01:00
8c7ad20804 Replace deprecated GH command - set-output 2022-11-13 09:46:15 +01:00
4e0b434104 Bump s4u/maven-settings-action from 2.7.0 to 2.8.0
Bumps [s4u/maven-settings-action](https://github.com/s4u/maven-settings-action) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/s4u/maven-settings-action/releases)
- [Commits](https://github.com/s4u/maven-settings-action/compare/v2.7.0...v2.8.0)

---
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>
2022-11-13 09:29:54 +01:00
bb348407a1 Bump stCarolas/setup-maven from 4.4 to 4.5
Bumps [stCarolas/setup-maven](https://github.com/stCarolas/setup-maven) from 4.4 to 4.5.
- [Release notes](https://github.com/stCarolas/setup-maven/releases)
- [Commits](https://github.com/stCarolas/setup-maven/compare/v4.4...v4.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-07 14:03:57 +01:00
b185da4934 Bump release-drafter/release-drafter from 5.21.0 to 5.21.1
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.21.0 to 5.21.1.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.21.0...v5.21.1)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-24 15:14:26 +02:00
4fdbe2a6a7 Bump s4u/maven-settings-action from 2.6.0 to 2.7.0
Bumps [s4u/maven-settings-action](https://github.com/s4u/maven-settings-action) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/s4u/maven-settings-action/releases)
- [Commits](https://github.com/s4u/maven-settings-action/compare/v2.6.0...v2.7.0)

---
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>
2022-10-17 15:27:10 +02:00
6f549063f4 Bump release-drafter/release-drafter from 5.20.1 to 5.21.0
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.20.1 to 5.21.0.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.20.1...v5.21.0)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 15:11:46 +02:00
615b14550f Bump release-drafter/release-drafter from 5.20.0 to 5.20.1
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.20.0 to 5.20.1.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.20.0...v5.20.1)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 15:22:42 +02:00
835f1da688 Merge pull request #40 from s4u/mvn-3.8.6
Maven 3.8.6 as default
2022-08-18 09:40:32 +02:00
cab2e3d716 Maven 3.8.6 as default 2022-08-18 09:19:20 +02:00
a993197694 Bump stCarolas/setup-maven from 4.3 to 4.4
Bumps [stCarolas/setup-maven](https://github.com/stCarolas/setup-maven) from 4.3 to 4.4.
- [Release notes](https://github.com/stCarolas/setup-maven/releases)
- [Commits](https://github.com/stCarolas/setup-maven/compare/v4.3...v4.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-01 16:59:11 +02:00
44901dc0f8 Bump release-drafter/release-drafter from 5.19.0 to 5.20.0
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.19.0 to 5.20.0.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.19.0...v5.20.0)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-16 15:14:40 +02:00
63e4cd9ad1 Merge pull request #37 from s4u/checkput-persist-cred
Add persist-credentials for checkout action with default false
2022-05-10 09:45:10 +02:00
f0414a8351 Add persist-credentials for checkout action with default false 2022-05-10 09:29:43 +02:00
81f0483288 Merge pull request #36 from s4u/chckout-path
Add path for checkout action
2022-05-10 09:26:50 +02:00
af6b8e170c Add path for checkout action 2022-05-10 08:07:43 +02:00
22a06a2fe3 Merge pull request #35 from s4u/same-maven-version
Don't reinstall the same version of Maven
2022-05-09 13:43:24 +02:00
d36f1fc23e Don't reinstall the same version of Maven 2022-05-09 13:23:35 +02:00
b53dd2825a Merge pull request #34 from s4u/re-run-maven-download
Try again download maven
2022-04-16 13:51:11 +02:00
56cc41b90d Try again download maven 2022-04-16 13:45:03 +02:00
e3c826f8cc Bump s4u/maven-settings-action from 2.5.0 to 2.6.0
Bumps [s4u/maven-settings-action](https://github.com/s4u/maven-settings-action) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/s4u/maven-settings-action/releases)
- [Commits](https://github.com/s4u/maven-settings-action/compare/v2.5.0...v2.6.0)

---
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>
2022-04-04 15:13:13 +02:00
4c63d7d932 Bump actions/setup-java from 2.4.0 to 3
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.4.0 to 3.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.4.0...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 23:01:45 +01:00
4585690afd Maven 3.8.5 as default 2022-03-25 22:23:19 +01:00
22fe1553d7 Bump actions/cache from 2.1.7 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.7...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 21:11:51 +01:00
18ef4b759e Bump actions/checkout from 2.4.0 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 12:34:12 +01:00
58b2cc938d Fix verify job 2022-03-16 09:51:10 +01:00
004043f81b Bump stCarolas/setup-maven from 4.2 to 4.3
Bumps [stCarolas/setup-maven](https://github.com/stCarolas/setup-maven) from 4.2 to 4.3.
- [Release notes](https://github.com/stCarolas/setup-maven/releases)
- [Commits](https://github.com/stCarolas/setup-maven/compare/v4.2...v4.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 14:34:52 +01:00
d9764096ef Bump s4u/maven-settings-action from 2.4.1 to 2.5.0
Bumps [s4u/maven-settings-action](https://github.com/s4u/maven-settings-action) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/s4u/maven-settings-action/releases)
- [Commits](https://github.com/s4u/maven-settings-action/compare/v2.4.1...v2.5.0)

---
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>
2022-03-14 14:15:12 +01:00
d60941527d Bump release-drafter/release-drafter from 5.18.1 to 5.19.0
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.18.1 to 5.19.0.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.18.1...v5.19.0)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 14:55:05 +01:00
8668fb9de8 File sync from s4u/.github - Shared auto approve 2022-02-23 19:18:36 +00:00
ec82f26b88 File sync from s4u/.github - Shared auto approve 2022-02-23 19:06:44 +00:00
1907361ea9 File sync from s4u/.github - disable auto approve 2022-02-23 17:30:07 +00:00
d4245fa41a File sync from s4u/.github - Bump dependabot/fetch-metadata from 1.1.1 to 1.2.1 in /common-files 2022-02-23 16:22:34 +00:00
35a231e628 Merge pull request #24 from s4u/mvn-3.8.4
Maven 3.8.4 as default
2022-02-21 14:48:13 +01:00
bee771f042 Maven 3.8.4 as default 2022-02-21 14:41:18 +01:00
5344d1092e Bump dependabot/fetch-metadata from 1.1.1 to 1.2.0
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](https://github.com/dependabot/fetch-metadata/compare/v1.1.1...v1.2.0)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 14:13:50 +01:00
cd150da647 Bump release-drafter/release-drafter from 5.18.0 to 5.18.1
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.18.0 to 5.18.1.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.18.0...v5.18.1)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 14:15:41 +01:00
f2a772b79b File sync from s4u/.github - Bump release-drafter/release-drafter in /common-files 2022-02-07 10:17:06 +00:00
b82597c31c Bump release-drafter/release-drafter from 5.17.5 to 5.17.6
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.17.5 to 5.17.6.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.17.5...v5.17.6)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 14:16:44 +01:00
2a61fa7362 Bump release-drafter/release-drafter from 5.15.0 to 5.17.5
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.15.0 to 5.17.5.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.15.0...v5.17.5)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 14:15:38 +01:00
47c2778e48 Merge pull request #19 from s4u/cache-2.1.7
Bump actions/cache from 2.1.6 to 2.1.7
2021-12-03 18:28:44 +01:00
18ed4916ce Bump actions/cache from 2.1.6 to 2.1.7
https://github.com/actions/cache/releases/tag/v2.1.7
2021-12-03 18:25:52 +01:00
a2f82a8171 Merge pull request #18 from s4u/java-setup-2.4.0
Bump actions/setup-java from 2.3.1 to 2.4.0
2021-12-03 18:19:15 +01:00
f0c6d72092 Bump actions/setup-java from 2.3.1 to 2.4.0
https://github.com/actions/setup-java/releases/tag/v2.4.0
2021-12-03 18:16:04 +01:00
fccb401913 Merge pull request #17 from s4u/mvn-3.8.4
Bump maven from 3.8.3 to 3.8.4 in test
2021-12-03 18:14:57 +01:00
440eda18c7 Bump maven from 3.8.3 to 3.8.4 in test 2021-12-03 18:12:07 +01:00
44b3adc17b Merge pull request #16 from s4u/checkout-2.4.0
Bump actions/checkout from 2.3.5 to 2.4.0
2021-12-03 18:10:46 +01:00
8d6de218c6 Bump actions/checkout from 2.3.5 to 2.4.0
https://github.com/actions/checkout/releases/tag/v2.4.0
2021-12-03 18:07:09 +01:00
421a3d288e Remove concurrency from test 2021-12-03 18:06:45 +01:00
00510bfd43 Bump actions/checkout from 2.3.5 to 2.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.5...v2.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 14:14:37 +01:00
8693beee3c Bump actions/checkout from 2.3.4 to 2.3.5 2021-10-30 17:27:17 +02:00
9589d5648d Bump actions/checkout from 2.3.4 to 2.3.5
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.4...v2.3.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 15:14:08 +02:00
d27f7bad34 Merge pull request #13 from s4u/s-j-2.3.1
Bump setup-java from 2.3.0 to 2.3.1
2021-10-09 13:25:42 +02:00
07db3fb4b2 Bump setup-java from 2.3.0 to 2.3.1
https://github.com/actions/setup-java/releases/tag/v2.3.1
2021-10-09 13:21:38 +02:00
3a36aae9ec Merge pull request #12 from s4u/jdk-17
Replace jdk 16 by 17 in tests
2021-10-09 13:19:15 +02:00
b8af8b0ed8 Replace jdk 16 by 17 in tests 2021-10-09 13:09:19 +02:00
336767f6a6 Merge pull request #11 from s4u/s-m-4.2
Bump setup-maven from 4.1 to 4.2
2021-10-09 12:57:07 +02:00
078175723e Bump setup-maven from 4.1 to 4.2
https://github.com/stCarolas/setup-maven/releases/tag/v4.2
2021-10-09 12:51:25 +02:00
38506fd243 Merge pull request #10 from s4u/mvn-3.8.3
Maven 3.8.3 as default
2021-10-07 08:36:45 +02:00
41d4657217 Maven 3.8.3 as default 2021-10-06 23:49:55 +02:00
e9a7bdc6d6 Merge pull request #9 from s4u/rm-debug
Remove group / debug info
2021-10-06 22:39:10 +02:00
b3d576e79a Remove group / debug info 2021-10-06 22:33:58 +02:00
ff43cac4ad Merge pull request #7 from s4u/action-name
Simplify action name
2021-08-30 19:49:36 +02:00
cac57cc0b0 Simplify action name 2021-08-30 19:44:30 +02:00
490f541598 Merge pull request #5 from s4u/checkout
Use actions/checkout
2021-08-30 08:37:39 +02:00
638a374dff Use actions/checkout 2021-08-30 08:33:27 +02:00
6f35cfffb0 Merge pull request #3 from s4u/concurrency
concurrency mode for tests build
2021-08-29 22:50:24 +02:00
4ce3c6745c concurrency mode for tests build 2021-08-29 22:04:21 +02:00
2261292f40 File sync from s4u/.github - include main branch in builds 2021-08-29 19:49:52 +00:00
10041ccdff File sync from s4u/.github - Use Tech Token for Auto Approve 2021-08-29 19:39:29 +00:00
7d14bd0fab Merge pull request #2 from s4u/cache
Use actions/cache
2021-08-29 17:04:57 +02:00
73706c9355 Use actions/cache 2021-08-29 16:53:38 +02:00
f625f4e949 File sync from s4u/.github - Auto merge patch and minor updates 2021-08-28 21:42:38 +00:00
d253165ff8 File sync from s4u/.github - Auto Approve by gh cli 2021-08-28 21:32:26 +00:00
339d84e602 fix action name in example 2021-08-28 22:47:51 +02:00
6 changed files with 258 additions and 123 deletions

View File

@ -1,25 +1,10 @@
name: Auto approve
name: Auto Approve
on:
pull_request_target
jobs:
auto-approve:
runs-on: ubuntu-latest
steps:
- uses: alexwilson/enable-github-automerge-action@1.0.0
if: >
github.actor == 'dependabot[bot]'
|| github.actor == 'dependabot-preview[bot]'
with:
merge-method: "REBASE"
github-token: "${{ secrets.TECH_TOKEN }}"
- uses: hmarr/auto-approve-action@v2.1.0
if: >
github.actor == 'dependabot[bot]'
|| github.actor == 'dependabot-preview[bot]'
|| github.actor == 'slawekjaranowski'
with:
github-token: "${{ secrets.TECH_TOKEN }}"
uses: s4u/.github/.github/workflows/auto-approve.yml@master
secrets:
TECH_TOKEN: ${{ secrets.TECH_TOKEN }}

View File

@ -4,18 +4,10 @@ on:
push:
branches:
- 'master'
- 'main'
workflow_dispatch:
jobs:
update_release_draft:
name: Update Release Draft
runs-on: ubuntu-latest
concurrency: release-drafter
if: >
github.repository_owner == 's4u'
&& !startsWith(github.event.head_commit.message , '[maven-release-plugin]')
steps:
- uses: release-drafter/release-drafter@v5.15.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: s4u/.github/.github/workflows/release-drafter.yml@master

View File

@ -2,9 +2,11 @@ name: Test
on:
pull_request:
branches:
- 'main'
push:
branches-ignore:
- 'dependabot/**'
branches:
- 'main'
schedule:
- cron: '22 23 * * 5'
@ -16,21 +18,45 @@ jobs:
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
java: [ '8', '11', '16' ]
maven: [ '3.5.4', '3.6.3', '3.8.2' ]
java: [ '8', '11', '17', '21' ]
maven: [ '3.8.8', '3.9.11' ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./
with:
java-version: ${{ matrix.java }}
java-cache: maven
maven-version: ${{ matrix.maven }}
cache-prefix: 'test-prefix-'
- run: mvn -V validate -Drequire.java=${{ matrix.java }} -Drequire.maven=${{ matrix.maven }}
shell: bash
test-default:
name: Test with defaults
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.11
shell: bash
test-ok:
name: Test OK
runs-on: ubuntu-latest
needs: [ test, test-default ]
if: always()
steps:
- run: 'true'
if: join(needs.*.result, ',') == 'success,success'
- run: 'false'
if: join(needs.*.result, ',') != 'success,success'

112
README.md
View File

@ -1,48 +1,94 @@
# Setup Maven with settings.xml
# Setup Maven Action
[![Test](https://github.com/s4u/setup-maven-action/actions/workflows/test.yml/badge.svg)](https://github.com/s4u/setup-maven-action/actions/workflows/test.yml)
This is composite action which help to prepare GitHub Actions environment for Maven build by calling:
- [actions/checkout](https://github.com/marketplace/actions/checkout)
- [actions/setup-java](https://github.com/marketplace/actions/setup-java-jdk)
- [actions/cache](https://github.com/marketplace/actions/cache)
- [stCarolas/setup-maven](https://github.com/marketplace/actions/setup-maven)
- [s4u/maven-settings-action](https://github.com/marketplace/actions/maven-settings-action)
# Contributions
- Contributions are welcome!
- Give :star: - if you want to encourage me to work on a project
- Don't hesitate to create issues for new features you dream of or if you suspect some bug
:exclamation: You **should not** include above actions in your configuration - in other case those will be **called twice**. :exclamation:
# Project versioning
This project uses [Semantic Versioning](https://semver.org/).
We recommended to use the latest and specific release version.
For default values you only need:
In order to keep your project dependencies up to date you can watch this repository *(Releases only)*
or use automatic tools like [Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates).
```yml
steps:
- name: Setup Maven Action
uses: s4u/setup-maven-action@< version >
- run: mvn -V ...
```
# Params mapping for sub actions
## checkout
| params | destination | default |
|------------------------------|---------------------|--------------------------|
| checkout-enabled | enabled | true |
| checkout-fetch-depth | fetch-depth | |
| checkout-submodules | submodules | |
| checkout-path | path | |
| checkout-ref | ref | |
| checkout-repository | repository | ${{ github.repository }} |
| checkout-token | token | ${{ github.token }} |
| checkout-ssh-key | ssh-key | |
| checkout-persist-credentials | persist-credentials | false |
## setup-java
| params | destination | default |
| ----------------- |------------- |-------- |
| java-version | java-version | |
| java-distribution | distribution | temurin |
| java-cache | cache | |
|-------------------|--------------|---------|
| java-version | java-version | 17 |
| java-distribution | distribution | zulu |
| java-jdkFile | jdkFile | |
## cache
A cache action is configured as:
```yaml
- uses: actions/cache
with:
path: |
${{ inputs.cache-path }}
${{ inputs.cache-path-add }}
key: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-
```
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-add | additional value for cache path |
| cache-prefix | prefix value for `key` and `restore-keys` cache params |
## setup-maven
| params | destination | default |
| ------------- |-------------- |-------- |
| maven-version | maven-version | 3.8.1 |
|---------------|---------------|---------|
| maven-version | maven-version | 3.9.11 |
## maven-settings-action
| params | destination |
| -------------------------- |------------------ |
| settings-servers | servers |
| settings-mirrors | mirrors |
| settings-properties | properties |
| settings-sonatypeSnapshots | sonatypeSnapshots |
| 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
@ -54,21 +100,35 @@ jobs:
strategy:
matrix:
maven: [ '3.5.4', '3.6.3', '3.8.2' ]
maven: [ '3.8.8', '3.9.8' ]
name: Maven ${{ matrix.maven }} sample
steps:
- uses: actions/checkout@v2
- name: Setup Maven
uses: setup-maven@v1.0.0
- name: Setup Maven Action
uses: s4u/setup-maven-action@< version >
with:
java-version: 8
maven-version: ${{ matrix.maven }}
- run: mvn -V ...
```
# Contributions
- Contributions are welcome!
- Give :star: - if you want to encourage me to work on a project
- Don't hesitate to create issues for new features you dream of or if you suspect some bug
# Project versioning
This project uses [Semantic Versioning](https://semver.org/).
We recommended using the latest and specific release version.
In order to keep your project dependencies up to date you can watch this repository *(Releases only)*
or use automatic tools like [Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates).
# License
The scripts and documentation in this project are released under the [MIT License](LICENSE)

View File

@ -1,5 +1,5 @@
name: 'Setup Maven with settings.xml'
description: 'Setup environment for Maven build'
name: 'Setup Maven Action'
description: 'Complete environment configuration for Maven builds'
branding:
icon: 'settings'
@ -7,75 +7,177 @@ branding:
inputs:
# checkout
checkout-enabled:
description: 'Enable checkout'
default: 'true'
required: false
checkout-fetch-depth:
description: 'Number of commits to fetch'
required: false
checkout-submodules:
description: 'Whether to fetch submodules'
required: false
checkout-path:
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
required: false
checkout-persist-credentials:
description: 'Whether to configure the token or SSH key with the local git config'
default: 'false'
required: false
checkout-ref:
description: 'The branch, tag, or SHA of the repository to clone'
required: false
checkout-repository:
description: 'The repository to checkout if not the repository that triggered the action. For use when building GitHub Apps'
required: false
default: ${{ github.repository }}
checkout-token:
description: 'Token to use for checkout if checking out a repository out of scope for GITHUB_TOKEN'
required: false
default: ${{ github.token }}
checkout-ssh-key:
description: 'SSH key used to fetch the repository. It allows to run authenticated git commands'
required: false
# java jdk params
java-version:
description: 'The Java version to set up'
default: '17'
required: true
java-distribution:
description: 'Java distribution'
default: 'temurin'
default: 'zulu'
required: false
java-cache:
description: 'Name of the build platform to cache dependencies. It should be "maven" or empty.'
required: true
java-jdkFile:
description: 'Java JDK compressed file location'
required: false
# cache
cache-enabled:
description: 'Enable cache'
default: 'true'
required: false
cache-prefix:
description: 'Cache key prefix'
required: false
cache-path:
description: 'Cache path'
default: '~/.m2/repository'
required: false
cache-path-add:
description: 'Additional item for cache path'
required: false
# maven version
maven-version:
description: 'The Maven version to set up'
default: 3.8.1
default: '3.9.11'
required: false
# maven settings.xml
settings-servers:
description: 'servers definition in json array, eg: [{"id": "serverId", "username": "username", "password": "password"}]'
description: 'servers definition in json array, e.g.: [{"id": "serverId", "username": "username", "password": "password"}]'
required: false
settings-mirrors:
description: 'mirrors definition in json array, eg: [{"id": "id", "name": "name", "mirrorOf": "mirrorOf", "url": "url"}]'
description: 'mirrors definition in json array, e.g.: [{"id": "id", "name": "name", "mirrorOf": "mirrorOf", "url": "url"}]'
required: false
settings-properties:
description: 'json array with properties, eg [{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
description: 'json array with properties, e.g.: [{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
required: false
settings-sonatypeSnapshots:
description: 'add https://oss.sonatype.org/content/repositories/snapshots to repository list - true or false'
required: false
settings-proxies:
description: 'proxies definition in json array, e.g.: [{"id": "http-proxy", "active": "true", "protocol": "http", "host": "host", "port": "port", "nonProxyHosts": "host1|host2"}]'
required: false
settings-repositories:
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:
- run: echo "::group::Setup Java"
shell: bash
- uses: actions/setup-java@v2.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
if: inputs.checkout-enabled == 'true'
with:
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
submodules: '${{ inputs.checkout-submodules }}'
path: '${{ inputs.checkout-path }}'
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
ref: '${{ inputs.checkout-ref }}'
repository: '${{ inputs.checkout-repository }}'
token: '${{ inputs.checkout-token }}'
ssh-key: '${{ inputs.checkout-ssh-key }}'
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
with:
overwrite-settings: false
java-version: '${{ inputs.java-version }}'
distribution: '${{ inputs.java-distribution }}'
cache: '${{ inputs.java-cache }}'
- run: echo "::endgroup::"
shell: bash
jdkFile: '${{ inputs.java-jdkFile }}'
- run: echo "::group::Setup Maven Version"
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
if: inputs.cache-enabled == 'true'
with:
path: |
${{ inputs.cache-path }}
${{ inputs.cache-path-add }}
key: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-
- name: Installed Maven version
run: echo "version=$(mvn -q -v)" >> $GITHUB_OUTPUT
shell: bash
- uses: stCarolas/setup-maven@v4.1
id: current-maven
- uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
if: inputs.maven-version != steps.current-maven.outputs.version
with:
maven-version: '${{ inputs.maven-version }}'
- run: echo "::endgroup::"
shell: bash
- run: echo "::group::Prepare Maven settings.xml"
shell: bash
- uses: s4u/maven-settings-action@v2.4.1
- uses: s4u/maven-settings-action@894661b3ddae382f1ae8edbeab60987e08cf0788 # v4.0.0
with:
servers: '${{ inputs.settings-servers}}'
mirrors: '${{ inputs.settings-mirrors}}'
properties: '${{ inputs.settings-properties}}'
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots}}'
- run: echo "::endgroup::"
shell: bash
servers: '${{ inputs.settings-servers }}'
mirrors: '${{ inputs.settings-mirrors }}'
properties: '${{ inputs.settings-properties }}'
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots }}'
proxies: '${{ inputs.settings-proxies }}'
repositories: '${{ inputs.settings-repositories }}'
pluginRepositories: '${{ inputs.settings-pluginRepositories }}'
githubServer: '${{ inputs.settings-githubServer }}'
path: '${{ inputs.settings-path }}'

34
pom.xml
View File

@ -36,7 +36,6 @@
<properties>
<require.maven/>
<require.java/>
<_require.java/>
</properties>
<build>
@ -44,11 +43,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<version>3.2.1</version>
<executions>
<execution>
<goals>
<goal>display-info</goal>
<goal>enforce</goal>
</goals>
<phase>validate</phase>
@ -57,7 +55,7 @@
<configuration>
<rules>
<requireJavaVersion>
<version>${_require.java}</version>
<version>${require.java}</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[${require.maven}]</version>
@ -67,32 +65,4 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java8-version-label</id>
<activation>
<property>
<name>require.java</name>
<value>8</value>
</property>
</activation>
<properties>
<_require.java>1.8</_require.java>
</properties>
</profile>
<profile>
<id>non-java8-version-label</id>
<activation>
<property>
<name>require.java</name>
<value>!8</value>
</property>
</activation>
<properties>
<_require.java>${require.java}</_require.java>
</properties>
</profile>
</profiles>
</project>