Add Maven Wrapper cache feature (#1027)

* add Maven Wrapper distribution caching

* update test case

---------

Co-authored-by: Bruno Borges <bruno.borges@gmail.com>
This commit is contained in:
mahabaleshwars
2026-06-22 20:15:18 +05:30
committed by GitHub
parent 6e9017e125
commit ce7f9ce621
5 changed files with 50 additions and 12 deletions
+5 -2
View File
@@ -77637,9 +77637,12 @@ const CACHE_KEY_PREFIX = 'setup-java';
const supportedPackageManager = [
{
id: 'maven',
path: [(0, path_1.join)(os_1.default.homedir(), '.m2', 'repository')],
path: [
(0, path_1.join)(os_1.default.homedir(), '.m2', 'repository'),
(0, path_1.join)(os_1.default.homedir(), '.m2', 'wrapper', 'dists')
],
// https://github.com/actions/cache/blob/0638051e9af2c23d10bb70fa9beffcad6cff9ce3/examples.md#java---maven
pattern: ['**/pom.xml']
pattern: ['**/pom.xml', '**/.mvn/wrapper/maven-wrapper.properties']
},
{
id: 'gradle',