mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 18:36:46 +00:00
Merge remote-tracking branch 'origin/main' into update-ncc-3rd
This commit is contained in:
commit
7ddcf0d836
10 changed files with 280 additions and 1 deletions
16
dist/cleanup/index.js
vendored
16
dist/cleanup/index.js
vendored
|
@ -65442,8 +65442,24 @@ const supportedPackageManager = [
|
|||
path: [path_1.join(os_1.default.homedir(), '.gradle', 'caches'), path_1.join(os_1.default.homedir(), '.gradle', 'wrapper')],
|
||||
// https://github.com/actions/cache/blob/0638051e9af2c23d10bb70fa9beffcad6cff9ce3/examples.md#java---gradle
|
||||
pattern: ['**/*.gradle*', '**/gradle-wrapper.properties']
|
||||
},
|
||||
{
|
||||
id: 'sbt',
|
||||
path: [
|
||||
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
|
||||
path_1.join(os_1.default.homedir(), '.sbt'),
|
||||
getCoursierCachePath()
|
||||
],
|
||||
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
|
||||
}
|
||||
];
|
||||
function getCoursierCachePath() {
|
||||
if (os_1.default.type() === 'Linux')
|
||||
return path_1.join(os_1.default.homedir(), '.cache', 'coursier');
|
||||
if (os_1.default.type() === 'Darwin')
|
||||
return path_1.join(os_1.default.homedir(), 'Library', 'Caches', 'Coursier');
|
||||
return path_1.join(os_1.default.homedir(), 'AppData', 'Local', 'Coursier', 'Cache');
|
||||
}
|
||||
function findPackageManager(id) {
|
||||
const packageManager = supportedPackageManager.find(packageManager => packageManager.id === id);
|
||||
if (packageManager === undefined) {
|
||||
|
|
16
dist/setup/index.js
vendored
16
dist/setup/index.js
vendored
|
@ -100647,8 +100647,24 @@ const supportedPackageManager = [
|
|||
path: [path_1.join(os_1.default.homedir(), '.gradle', 'caches'), path_1.join(os_1.default.homedir(), '.gradle', 'wrapper')],
|
||||
// https://github.com/actions/cache/blob/0638051e9af2c23d10bb70fa9beffcad6cff9ce3/examples.md#java---gradle
|
||||
pattern: ['**/*.gradle*', '**/gradle-wrapper.properties']
|
||||
},
|
||||
{
|
||||
id: 'sbt',
|
||||
path: [
|
||||
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
|
||||
path_1.join(os_1.default.homedir(), '.sbt'),
|
||||
getCoursierCachePath()
|
||||
],
|
||||
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
|
||||
}
|
||||
];
|
||||
function getCoursierCachePath() {
|
||||
if (os_1.default.type() === 'Linux')
|
||||
return path_1.join(os_1.default.homedir(), '.cache', 'coursier');
|
||||
if (os_1.default.type() === 'Darwin')
|
||||
return path_1.join(os_1.default.homedir(), 'Library', 'Caches', 'Coursier');
|
||||
return path_1.join(os_1.default.homedir(), 'AppData', 'Local', 'Coursier', 'Cache');
|
||||
}
|
||||
function findPackageManager(id) {
|
||||
const packageManager = supportedPackageManager.find(packageManager => packageManager.id === id);
|
||||
if (packageManager === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue