mirror of
https://github.com/actions/setup-java
synced 2025-01-03 17:52:40 +00:00
Cache Maven Dists downloaded by the Maven Wrapper
This commit is contained in:
parent
ea15b3b99c
commit
a8fc099b0f
4 changed files with 7 additions and 7 deletions
|
@ -81,7 +81,7 @@ describe('dependency cache', () => {
|
|||
await expect(restore('maven')).rejects.toThrowError(
|
||||
`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 () => {
|
||||
|
|
4
dist/cleanup/index.js
vendored
4
dist/cleanup/index.js
vendored
|
@ -68236,9 +68236,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
4
dist/setup/index.js
vendored
|
@ -103439,9 +103439,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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue