Merge a630a8d9a29d92e3b7c8e935510658b9ad03a36e into 78078da0cd035d0d177cc2cb696e05d96fba7d11

This commit is contained in:
Yeikel 2023-10-22 01:47:07 -07:00 committed by GitHub
commit 64eff356cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -85,7 +85,7 @@ describe('dependency cache', () => {
await expect(restore('maven')).rejects.toThrow(
`No file in ${projectRoot(
workspace
)} matched to [**/pom.xml], make sure you have checked out the target repository`
)} matched to [**/pom.xml,.mvn/wrapper/maven-wrapper.properties], make sure you have checked out the target repository`
);
});
it('downloads cache', async () => {

View File

@ -89668,9 +89668,9 @@ const CACHE_KEY_PREFIX = 'setup-java';
const supportedPackageManager = [
{
id: 'maven',
path: [path_1.join(os_1.default.homedir(), '.m2', 'repository')],
path: [path_1.join(os_1.default.homedir(), '.m2', 'repository'), 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',

4
dist/setup/index.js vendored
View File

@ -124873,9 +124873,9 @@ const CACHE_KEY_PREFIX = 'setup-java';
const supportedPackageManager = [
{
id: 'maven',
path: [path_1.join(os_1.default.homedir(), '.m2', 'repository')],
path: [path_1.join(os_1.default.homedir(), '.m2', 'repository'), 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',

View File

@ -23,9 +23,9 @@ interface PackageManager {
const supportedPackageManager: PackageManager[] = [
{
id: 'maven',
path: [join(os.homedir(), '.m2', 'repository')],
path: [join(os.homedir(), '.m2', 'repository'), join(os.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',