mirror of
https://github.com/gradle/actions
synced 2024-11-23 18:02:13 +00:00
[bot] Update dist directory
This commit is contained in:
parent
514ac344fc
commit
77266ec345
8 changed files with 80 additions and 16 deletions
22
dist/dependency-submission/main/index.js
vendored
22
dist/dependency-submission/main/index.js
vendored
|
@ -145752,7 +145752,7 @@ async function installGradleVersion(versionInfo) {
|
|||
});
|
||||
}
|
||||
async function locateGradleAndDownloadIfRequired(versionInfo) {
|
||||
const installsDir = path.join(os.homedir(), 'gradle-installations/installs');
|
||||
const installsDir = path.join(getProvisionDir(), 'installs');
|
||||
const installDir = path.join(installsDir, `gradle-${versionInfo.version}`);
|
||||
if (fs.existsSync(installDir)) {
|
||||
core.info(`Gradle installation already exists at ${installDir}`);
|
||||
|
@ -145767,7 +145767,7 @@ async function locateGradleAndDownloadIfRequired(versionInfo) {
|
|||
return executable;
|
||||
}
|
||||
async function downloadAndCacheGradleDistribution(versionInfo) {
|
||||
const downloadPath = path.join(os.homedir(), `gradle-installations/downloads/gradle-${versionInfo.version}-bin.zip`);
|
||||
const downloadPath = path.join(getProvisionDir(), `downloads/gradle-${versionInfo.version}-bin.zip`);
|
||||
const cacheConfig = new configuration_1.CacheConfig();
|
||||
if (cacheConfig.isCacheDisabled()) {
|
||||
await downloadGradleDistribution(versionInfo, downloadPath);
|
||||
|
@ -145796,6 +145796,10 @@ async function downloadAndCacheGradleDistribution(versionInfo) {
|
|||
}
|
||||
return downloadPath;
|
||||
}
|
||||
function getProvisionDir() {
|
||||
const tmpDir = process.env['RUNNER_TEMP'] ?? os.tmpdir();
|
||||
return path.join(tmpDir, `.gradle-actions/gradle-installations`);
|
||||
}
|
||||
async function downloadGradleDistribution(versionInfo, downloadPath) {
|
||||
await toolCache.downloadTool(versionInfo.downloadUrl, downloadPath);
|
||||
core.info(`Downloaded ${versionInfo.downloadUrl} to ${downloadPath} (size ${fs.statSync(downloadPath).size})`);
|
||||
|
@ -146043,6 +146047,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||
exports.checkNoInvalidWrapperJars = exports.complete = exports.setup = void 0;
|
||||
const core = __importStar(__nccwpck_require__(42186));
|
||||
const exec = __importStar(__nccwpck_require__(71514));
|
||||
const fs = __importStar(__nccwpck_require__(57147));
|
||||
const path = __importStar(__nccwpck_require__(71017));
|
||||
const os = __importStar(__nccwpck_require__(22037));
|
||||
const caches = __importStar(__nccwpck_require__(87504));
|
||||
|
@ -146101,7 +146106,18 @@ async function determineGradleUserHome() {
|
|||
const rootDir = (0, configuration_1.getWorkspaceDirectory)();
|
||||
return path.resolve(rootDir, customGradleUserHome);
|
||||
}
|
||||
return path.resolve(await determineUserHome(), '.gradle');
|
||||
const defaultGradleUserHome = path.resolve(await determineUserHome(), '.gradle');
|
||||
if (fs.existsSync(defaultGradleUserHome)) {
|
||||
core.info(`Gradle User Home already exists at ${defaultGradleUserHome}`);
|
||||
return defaultGradleUserHome;
|
||||
}
|
||||
if (os.platform() === 'win32' && defaultGradleUserHome.startsWith('C:\\') && fs.existsSync('D:\\a\\')) {
|
||||
const fasterGradleUserHome = 'D:\\a\\.gradle';
|
||||
core.info(`Setting GRADLE_USER_HOME to ${fasterGradleUserHome} to leverage (potentially) faster drive.`);
|
||||
core.exportVariable('GRADLE_USER_HOME', fasterGradleUserHome);
|
||||
return fasterGradleUserHome;
|
||||
}
|
||||
return defaultGradleUserHome;
|
||||
}
|
||||
async function determineUserHome() {
|
||||
const output = await exec.getExecOutput('java', ['-XshowSettings:properties', '-version'], { silent: true });
|
||||
|
|
2
dist/dependency-submission/main/index.js.map
vendored
2
dist/dependency-submission/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
22
dist/dependency-submission/post/index.js
vendored
22
dist/dependency-submission/post/index.js
vendored
|
@ -99432,7 +99432,7 @@ async function installGradleVersion(versionInfo) {
|
|||
});
|
||||
}
|
||||
async function locateGradleAndDownloadIfRequired(versionInfo) {
|
||||
const installsDir = path.join(os.homedir(), 'gradle-installations/installs');
|
||||
const installsDir = path.join(getProvisionDir(), 'installs');
|
||||
const installDir = path.join(installsDir, `gradle-${versionInfo.version}`);
|
||||
if (fs.existsSync(installDir)) {
|
||||
core.info(`Gradle installation already exists at ${installDir}`);
|
||||
|
@ -99447,7 +99447,7 @@ async function locateGradleAndDownloadIfRequired(versionInfo) {
|
|||
return executable;
|
||||
}
|
||||
async function downloadAndCacheGradleDistribution(versionInfo) {
|
||||
const downloadPath = path.join(os.homedir(), `gradle-installations/downloads/gradle-${versionInfo.version}-bin.zip`);
|
||||
const downloadPath = path.join(getProvisionDir(), `downloads/gradle-${versionInfo.version}-bin.zip`);
|
||||
const cacheConfig = new configuration_1.CacheConfig();
|
||||
if (cacheConfig.isCacheDisabled()) {
|
||||
await downloadGradleDistribution(versionInfo, downloadPath);
|
||||
|
@ -99476,6 +99476,10 @@ async function downloadAndCacheGradleDistribution(versionInfo) {
|
|||
}
|
||||
return downloadPath;
|
||||
}
|
||||
function getProvisionDir() {
|
||||
const tmpDir = process.env['RUNNER_TEMP'] ?? os.tmpdir();
|
||||
return path.join(tmpDir, `.gradle-actions/gradle-installations`);
|
||||
}
|
||||
async function downloadGradleDistribution(versionInfo, downloadPath) {
|
||||
await toolCache.downloadTool(versionInfo.downloadUrl, downloadPath);
|
||||
core.info(`Downloaded ${versionInfo.downloadUrl} to ${downloadPath} (size ${fs.statSync(downloadPath).size})`);
|
||||
|
@ -99723,6 +99727,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||
exports.checkNoInvalidWrapperJars = exports.complete = exports.setup = void 0;
|
||||
const core = __importStar(__nccwpck_require__(2186));
|
||||
const exec = __importStar(__nccwpck_require__(1514));
|
||||
const fs = __importStar(__nccwpck_require__(7147));
|
||||
const path = __importStar(__nccwpck_require__(1017));
|
||||
const os = __importStar(__nccwpck_require__(2037));
|
||||
const caches = __importStar(__nccwpck_require__(7504));
|
||||
|
@ -99781,7 +99786,18 @@ async function determineGradleUserHome() {
|
|||
const rootDir = (0, configuration_1.getWorkspaceDirectory)();
|
||||
return path.resolve(rootDir, customGradleUserHome);
|
||||
}
|
||||
return path.resolve(await determineUserHome(), '.gradle');
|
||||
const defaultGradleUserHome = path.resolve(await determineUserHome(), '.gradle');
|
||||
if (fs.existsSync(defaultGradleUserHome)) {
|
||||
core.info(`Gradle User Home already exists at ${defaultGradleUserHome}`);
|
||||
return defaultGradleUserHome;
|
||||
}
|
||||
if (os.platform() === 'win32' && defaultGradleUserHome.startsWith('C:\\') && fs.existsSync('D:\\a\\')) {
|
||||
const fasterGradleUserHome = 'D:\\a\\.gradle';
|
||||
core.info(`Setting GRADLE_USER_HOME to ${fasterGradleUserHome} to leverage (potentially) faster drive.`);
|
||||
core.exportVariable('GRADLE_USER_HOME', fasterGradleUserHome);
|
||||
return fasterGradleUserHome;
|
||||
}
|
||||
return defaultGradleUserHome;
|
||||
}
|
||||
async function determineUserHome() {
|
||||
const output = await exec.getExecOutput('java', ['-XshowSettings:properties', '-version'], { silent: true });
|
||||
|
|
2
dist/dependency-submission/post/index.js.map
vendored
2
dist/dependency-submission/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
22
dist/setup-gradle/main/index.js
vendored
22
dist/setup-gradle/main/index.js
vendored
|
@ -145741,7 +145741,7 @@ async function installGradleVersion(versionInfo) {
|
|||
});
|
||||
}
|
||||
async function locateGradleAndDownloadIfRequired(versionInfo) {
|
||||
const installsDir = path.join(os.homedir(), 'gradle-installations/installs');
|
||||
const installsDir = path.join(getProvisionDir(), 'installs');
|
||||
const installDir = path.join(installsDir, `gradle-${versionInfo.version}`);
|
||||
if (fs.existsSync(installDir)) {
|
||||
core.info(`Gradle installation already exists at ${installDir}`);
|
||||
|
@ -145756,7 +145756,7 @@ async function locateGradleAndDownloadIfRequired(versionInfo) {
|
|||
return executable;
|
||||
}
|
||||
async function downloadAndCacheGradleDistribution(versionInfo) {
|
||||
const downloadPath = path.join(os.homedir(), `gradle-installations/downloads/gradle-${versionInfo.version}-bin.zip`);
|
||||
const downloadPath = path.join(getProvisionDir(), `downloads/gradle-${versionInfo.version}-bin.zip`);
|
||||
const cacheConfig = new configuration_1.CacheConfig();
|
||||
if (cacheConfig.isCacheDisabled()) {
|
||||
await downloadGradleDistribution(versionInfo, downloadPath);
|
||||
|
@ -145785,6 +145785,10 @@ async function downloadAndCacheGradleDistribution(versionInfo) {
|
|||
}
|
||||
return downloadPath;
|
||||
}
|
||||
function getProvisionDir() {
|
||||
const tmpDir = process.env['RUNNER_TEMP'] ?? os.tmpdir();
|
||||
return path.join(tmpDir, `.gradle-actions/gradle-installations`);
|
||||
}
|
||||
async function downloadGradleDistribution(versionInfo, downloadPath) {
|
||||
await toolCache.downloadTool(versionInfo.downloadUrl, downloadPath);
|
||||
core.info(`Downloaded ${versionInfo.downloadUrl} to ${downloadPath} (size ${fs.statSync(downloadPath).size})`);
|
||||
|
@ -146032,6 +146036,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||
exports.checkNoInvalidWrapperJars = exports.complete = exports.setup = void 0;
|
||||
const core = __importStar(__nccwpck_require__(42186));
|
||||
const exec = __importStar(__nccwpck_require__(71514));
|
||||
const fs = __importStar(__nccwpck_require__(57147));
|
||||
const path = __importStar(__nccwpck_require__(71017));
|
||||
const os = __importStar(__nccwpck_require__(22037));
|
||||
const caches = __importStar(__nccwpck_require__(87504));
|
||||
|
@ -146090,7 +146095,18 @@ async function determineGradleUserHome() {
|
|||
const rootDir = (0, configuration_1.getWorkspaceDirectory)();
|
||||
return path.resolve(rootDir, customGradleUserHome);
|
||||
}
|
||||
return path.resolve(await determineUserHome(), '.gradle');
|
||||
const defaultGradleUserHome = path.resolve(await determineUserHome(), '.gradle');
|
||||
if (fs.existsSync(defaultGradleUserHome)) {
|
||||
core.info(`Gradle User Home already exists at ${defaultGradleUserHome}`);
|
||||
return defaultGradleUserHome;
|
||||
}
|
||||
if (os.platform() === 'win32' && defaultGradleUserHome.startsWith('C:\\') && fs.existsSync('D:\\a\\')) {
|
||||
const fasterGradleUserHome = 'D:\\a\\.gradle';
|
||||
core.info(`Setting GRADLE_USER_HOME to ${fasterGradleUserHome} to leverage (potentially) faster drive.`);
|
||||
core.exportVariable('GRADLE_USER_HOME', fasterGradleUserHome);
|
||||
return fasterGradleUserHome;
|
||||
}
|
||||
return defaultGradleUserHome;
|
||||
}
|
||||
async function determineUserHome() {
|
||||
const output = await exec.getExecOutput('java', ['-XshowSettings:properties', '-version'], { silent: true });
|
||||
|
|
2
dist/setup-gradle/main/index.js.map
vendored
2
dist/setup-gradle/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
22
dist/setup-gradle/post/index.js
vendored
22
dist/setup-gradle/post/index.js
vendored
|
@ -145732,7 +145732,7 @@ async function installGradleVersion(versionInfo) {
|
|||
});
|
||||
}
|
||||
async function locateGradleAndDownloadIfRequired(versionInfo) {
|
||||
const installsDir = path.join(os.homedir(), 'gradle-installations/installs');
|
||||
const installsDir = path.join(getProvisionDir(), 'installs');
|
||||
const installDir = path.join(installsDir, `gradle-${versionInfo.version}`);
|
||||
if (fs.existsSync(installDir)) {
|
||||
core.info(`Gradle installation already exists at ${installDir}`);
|
||||
|
@ -145747,7 +145747,7 @@ async function locateGradleAndDownloadIfRequired(versionInfo) {
|
|||
return executable;
|
||||
}
|
||||
async function downloadAndCacheGradleDistribution(versionInfo) {
|
||||
const downloadPath = path.join(os.homedir(), `gradle-installations/downloads/gradle-${versionInfo.version}-bin.zip`);
|
||||
const downloadPath = path.join(getProvisionDir(), `downloads/gradle-${versionInfo.version}-bin.zip`);
|
||||
const cacheConfig = new configuration_1.CacheConfig();
|
||||
if (cacheConfig.isCacheDisabled()) {
|
||||
await downloadGradleDistribution(versionInfo, downloadPath);
|
||||
|
@ -145776,6 +145776,10 @@ async function downloadAndCacheGradleDistribution(versionInfo) {
|
|||
}
|
||||
return downloadPath;
|
||||
}
|
||||
function getProvisionDir() {
|
||||
const tmpDir = process.env['RUNNER_TEMP'] ?? os.tmpdir();
|
||||
return path.join(tmpDir, `.gradle-actions/gradle-installations`);
|
||||
}
|
||||
async function downloadGradleDistribution(versionInfo, downloadPath) {
|
||||
await toolCache.downloadTool(versionInfo.downloadUrl, downloadPath);
|
||||
core.info(`Downloaded ${versionInfo.downloadUrl} to ${downloadPath} (size ${fs.statSync(downloadPath).size})`);
|
||||
|
@ -146023,6 +146027,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||
exports.checkNoInvalidWrapperJars = exports.complete = exports.setup = void 0;
|
||||
const core = __importStar(__nccwpck_require__(42186));
|
||||
const exec = __importStar(__nccwpck_require__(71514));
|
||||
const fs = __importStar(__nccwpck_require__(57147));
|
||||
const path = __importStar(__nccwpck_require__(71017));
|
||||
const os = __importStar(__nccwpck_require__(22037));
|
||||
const caches = __importStar(__nccwpck_require__(87504));
|
||||
|
@ -146081,7 +146086,18 @@ async function determineGradleUserHome() {
|
|||
const rootDir = (0, configuration_1.getWorkspaceDirectory)();
|
||||
return path.resolve(rootDir, customGradleUserHome);
|
||||
}
|
||||
return path.resolve(await determineUserHome(), '.gradle');
|
||||
const defaultGradleUserHome = path.resolve(await determineUserHome(), '.gradle');
|
||||
if (fs.existsSync(defaultGradleUserHome)) {
|
||||
core.info(`Gradle User Home already exists at ${defaultGradleUserHome}`);
|
||||
return defaultGradleUserHome;
|
||||
}
|
||||
if (os.platform() === 'win32' && defaultGradleUserHome.startsWith('C:\\') && fs.existsSync('D:\\a\\')) {
|
||||
const fasterGradleUserHome = 'D:\\a\\.gradle';
|
||||
core.info(`Setting GRADLE_USER_HOME to ${fasterGradleUserHome} to leverage (potentially) faster drive.`);
|
||||
core.exportVariable('GRADLE_USER_HOME', fasterGradleUserHome);
|
||||
return fasterGradleUserHome;
|
||||
}
|
||||
return defaultGradleUserHome;
|
||||
}
|
||||
async function determineUserHome() {
|
||||
const output = await exec.getExecOutput('java', ['-XshowSettings:properties', '-version'], { silent: true });
|
||||
|
|
2
dist/setup-gradle/post/index.js.map
vendored
2
dist/setup-gradle/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue