Skip to content

Commit 5d7284b

Browse files
committed
Cache Maven Wrapper
Closes actions#448
1 parent ea15b3b commit 5d7284b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/cache.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ interface PackageManager {
2323
const supportedPackageManager: PackageManager[] = [
2424
{
2525
id: 'maven',
26-
path: [join(os.homedir(), '.m2', 'repository')],
26+
path: [join(os.homedir(), '.m2', 'repository'),join(os.homedir(), '.mvn', 'wrapper')],
2727
// https://github.com/actions/cache/blob/0638051e9af2c23d10bb70fa9beffcad6cff9ce3/examples.md#java---maven
28-
pattern: ['**/pom.xml']
28+
pattern: [
29+
'**/pom.xml',
30+
'**/*.mvn*',
31+
]
2932
},
3033
{
3134
id: 'gradle',

0 commit comments

Comments
 (0)