Merge branch 'CacheVersionUpdateTo3' of https://github.com/e-korolevskii/setup-java into CacheVersionUpdateTo3

This commit is contained in:
Evgenii Korolevskii 2022-06-24 15:52:39 +02:00
commit 821cc3dbd1
4 changed files with 16 additions and 4 deletions

View file

@ -54,7 +54,7 @@ inputs:
$GPG_PASSPHRASE.' $GPG_PASSPHRASE.'
required: false required: false
cache: cache:
description: 'Name of the build platform to cache dependencies. It can be "maven" or "gradle".' description: 'Name of the build platform to cache dependencies. It can be "maven", "gradle" or "sbt".'
required: false required: false
job-status: job-status:
description: 'Workaround to pass job status to post job step. This variable is not intended for manual setting' description: 'Workaround to pass job status to post job step. This variable is not intended for manual setting'

View file

@ -66179,7 +66179,11 @@ const supportedPackageManager = [
path: [ path: [
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'), path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
path_1.join(os_1.default.homedir(), '.sbt'), path_1.join(os_1.default.homedir(), '.sbt'),
getCoursierCachePath() getCoursierCachePath(),
// Some files should not be cached to avoid resolution problems.
// In particular the resolution of snapshots (ideological gap between maven/ivy).
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
], ],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
} }

6
dist/setup/index.js vendored
View file

@ -101384,7 +101384,11 @@ const supportedPackageManager = [
path: [ path: [
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'), path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
path_1.join(os_1.default.homedir(), '.sbt'), path_1.join(os_1.default.homedir(), '.sbt'),
getCoursierCachePath() getCoursierCachePath(),
// Some files should not be cached to avoid resolution problems.
// In particular the resolution of snapshots (ideological gap between maven/ivy).
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
], ],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
} }

View file

@ -38,7 +38,11 @@ const supportedPackageManager: PackageManager[] = [
path: [ path: [
join(os.homedir(), '.ivy2', 'cache'), join(os.homedir(), '.ivy2', 'cache'),
join(os.homedir(), '.sbt'), join(os.homedir(), '.sbt'),
getCoursierCachePath() getCoursierCachePath(),
// Some files should not be cached to avoid resolution problems.
// In particular the resolution of snapshots (ideological gap between maven/ivy).
'!' + join(os.homedir(), '.sbt', '*.lock'),
'!' + join(os.homedir(), '**', 'ivydata-*.properties')
], ],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
} }