[bot] Update dist directory

This commit is contained in:
bigdaz 2024-07-19 23:14:37 +00:00 committed by github-actions[bot]
parent 8e4868ab4a
commit 1371d49f1d
10 changed files with 119 additions and 439 deletions

View File

@ -143398,7 +143398,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0; exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0;
const cache = __importStar(__nccwpck_require__(27799)); const cache = __importStar(__nccwpck_require__(27799));
exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`; exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`;
exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`; exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`;
@ -143406,8 +143406,8 @@ exports.DEFAULT_DISABLED_REASON = `[Cache was disabled](https://github.com/gradl
exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`; exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`;
exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`; exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`;
exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`; exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`;
exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was not enabled. It must be explicitly enabled.`; exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.`;
exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled.`; exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.`;
exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.'; exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.';
exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = '[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). This is expected.'; exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = '[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). This is expected.';
class CacheListener { class CacheListener {
@ -143834,6 +143834,11 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
} }
gradleStateCache.init(); gradleStateCache.init();
core.saveState(CACHE_RESTORED_VAR, true); core.saveState(CACHE_RESTORED_VAR, true);
if (cacheConfig.isCacheCleanupEnabled()) {
core.info('Preparing cache for cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
await cacheCleaner.prepare();
}
if (cacheConfig.isCacheWriteOnly()) { if (cacheConfig.isCacheWriteOnly()) {
core.info('Cache is write-only: will not restore from cache.'); core.info('Cache is write-only: will not restore from cache.');
cacheListener.setWriteOnly(); cacheListener.setWriteOnly();
@ -143842,11 +143847,6 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
await core.group('Restore Gradle state from cache', async () => { await core.group('Restore Gradle state from cache', async () => {
await gradleStateCache.restore(cacheListener); await gradleStateCache.restore(cacheListener);
}); });
if (cacheConfig.isCacheCleanupEnabled()) {
core.info('Preparing cache for cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
await cacheCleaner.prepare();
}
} }
exports.restore = restore; exports.restore = restore;
async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) { async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) {
@ -144544,7 +144544,6 @@ const github = __importStar(__nccwpck_require__(95438));
const cache = __importStar(__nccwpck_require__(27799)); const cache = __importStar(__nccwpck_require__(27799));
const deprecator = __importStar(__nccwpck_require__(22572)); const deprecator = __importStar(__nccwpck_require__(22572));
const summary_1 = __nccwpck_require__(81327); const summary_1 = __nccwpck_require__(81327);
const string_argv_1 = __nccwpck_require__(19663);
const path_1 = __importDefault(__nccwpck_require__(71017)); const path_1 = __importDefault(__nccwpck_require__(71017));
const ACTION_ID_VAR = 'GRADLE_ACTION_ID'; const ACTION_ID_VAR = 'GRADLE_ACTION_ID';
class DependencyGraphConfig { class DependencyGraphConfig {
@ -144561,10 +144560,8 @@ class DependencyGraphConfig {
return DependencyGraphOption.GenerateAndUpload; return DependencyGraphOption.GenerateAndUpload;
case 'download-and-submit': case 'download-and-submit':
return DependencyGraphOption.DownloadAndSubmit; return DependencyGraphOption.DownloadAndSubmit;
case 'clear':
return DependencyGraphOption.Clear;
} }
throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit, clear]. The default value is 'disabled'.`); throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit]. The default value is 'disabled'.`);
} }
getDependencyGraphContinueOnFailure() { getDependencyGraphContinueOnFailure() {
return getBooleanInput('dependency-graph-continue-on-failure', true); return getBooleanInput('dependency-graph-continue-on-failure', true);
@ -144610,7 +144607,6 @@ var DependencyGraphOption;
DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit"; DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit";
DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload"; DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload";
DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit"; DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit";
DependencyGraphOption["Clear"] = "clear";
})(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {})); })(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {}));
class CacheConfig { class CacheConfig {
isCacheDisabled() { isCacheDisabled() {
@ -144684,9 +144680,6 @@ class SummaryConfig {
if (!process.env[summary_1.SUMMARY_ENV_VAR]) { if (!process.env[summary_1.SUMMARY_ENV_VAR]) {
return false; return false;
} }
if (!this.isJobSummaryEnabled()) {
return false;
}
return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure); return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure);
} }
shouldAddPRComment(hasFailure) { shouldAddPRComment(hasFailure) {
@ -144702,9 +144695,6 @@ class SummaryConfig {
return hasFailure; return hasFailure;
} }
} }
isJobSummaryEnabled() {
return getBooleanInput('generate-job-summary', true);
}
getJobSummaryOption() { getJobSummaryOption() {
return this.parseJobSummaryOption('add-job-summary'); return this.parseJobSummaryOption('add-job-summary');
} }
@ -144736,10 +144726,10 @@ class BuildScanConfig {
return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement(); return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement();
} }
getBuildScanTermsOfUseUrl() { getBuildScanTermsOfUseUrl() {
return this.getTermsOfUseProp('build-scan-terms-of-use-url', 'build-scan-terms-of-service-url'); return core.getInput('build-scan-terms-of-use-url');
} }
getBuildScanTermsOfUseAgree() { getBuildScanTermsOfUseAgree() {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree'); return core.getInput('build-scan-terms-of-use-agree');
} }
getDevelocityAccessKey() { getDevelocityAccessKey() {
return (core.getInput('develocity-access-key') || return (core.getInput('develocity-access-key') ||
@ -144789,18 +144779,6 @@ class BuildScanConfig {
} }
return true; return true;
} }
getTermsOfUseProp(newPropName, oldPropName) {
const newProp = core.getInput(newPropName);
if (newProp !== '') {
return newProp;
}
const oldProp = core.getInput(oldPropName);
if (oldProp !== '') {
deprecator.recordDeprecation('The `build-scan-terms-of-service` input parameters have been renamed');
return oldProp;
}
return core.getInput(oldPropName);
}
} }
exports.BuildScanConfig = BuildScanConfig; exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY'; BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
@ -144817,19 +144795,18 @@ class GradleExecutionConfig {
: path_1.default.resolve(baseDirectory, buildRootDirectoryInput); : path_1.default.resolve(baseDirectory, buildRootDirectoryInput);
return resolvedBuildRootDirectory; return resolvedBuildRootDirectory;
} }
getArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.recordDeprecation('Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
return (0, string_argv_1.parseArgsStringToArgv)(input);
}
getDependencyResolutionTask() { getDependencyResolutionTask() {
return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies'; return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies';
} }
getAdditionalArguments() { getAdditionalArguments() {
return core.getInput('additional-arguments'); return core.getInput('additional-arguments');
} }
verifyNoArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.failOnUseOfRemovedFeature(`The 'arguments' parameter is no longer supported for ${getActionId()}`, 'Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
}
} }
exports.GradleExecutionConfig = GradleExecutionConfig; exports.GradleExecutionConfig = GradleExecutionConfig;
function doValidateWrappers() { function doValidateWrappers() {
@ -145014,10 +144991,6 @@ async function setup(config) {
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext());
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)());
maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', config.getReportDirectory()); maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', config.getReportDirectory());
if (option === configuration_1.DependencyGraphOption.Clear) {
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_PROJECTS', '');
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS', '');
}
} }
exports.setup = setup; exports.setup = setup;
function maybeExportVariable(variableName, value) { function maybeExportVariable(variableName, value) {
@ -145034,7 +145007,6 @@ async function complete(config) {
case configuration_1.DependencyGraphOption.DownloadAndSubmit: case configuration_1.DependencyGraphOption.DownloadAndSubmit:
return; return;
case configuration_1.DependencyGraphOption.GenerateAndSubmit: case configuration_1.DependencyGraphOption.GenerateAndSubmit:
case configuration_1.DependencyGraphOption.Clear:
await findAndSubmitDependencyGraphs(config); await findAndSubmitDependencyGraphs(config);
return; return;
case configuration_1.DependencyGraphOption.GenerateAndUpload: case configuration_1.DependencyGraphOption.GenerateAndUpload:
@ -145249,7 +145221,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.recordDeprecation = exports.Deprecation = void 0; exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(42186)); const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778); const configuration_1 = __nccwpck_require__(15778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md'; const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
@ -145273,6 +145245,11 @@ function recordDeprecation(message) {
} }
} }
exports.recordDeprecation = recordDeprecation; exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() { function getDeprecations() {
return recordedDeprecations; return recordedDeprecations;
} }

File diff suppressed because one or more lines are too long

View File

@ -97347,7 +97347,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0; exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0;
const cache = __importStar(__nccwpck_require__(7799)); const cache = __importStar(__nccwpck_require__(7799));
exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`; exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`;
exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`; exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`;
@ -97355,8 +97355,8 @@ exports.DEFAULT_DISABLED_REASON = `[Cache was disabled](https://github.com/gradl
exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`; exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`;
exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`; exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`;
exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`; exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`;
exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was not enabled. It must be explicitly enabled.`; exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.`;
exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled.`; exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.`;
exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.'; exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.';
exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = '[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). This is expected.'; exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = '[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). This is expected.';
class CacheListener { class CacheListener {
@ -97783,6 +97783,11 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
} }
gradleStateCache.init(); gradleStateCache.init();
core.saveState(CACHE_RESTORED_VAR, true); core.saveState(CACHE_RESTORED_VAR, true);
if (cacheConfig.isCacheCleanupEnabled()) {
core.info('Preparing cache for cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
await cacheCleaner.prepare();
}
if (cacheConfig.isCacheWriteOnly()) { if (cacheConfig.isCacheWriteOnly()) {
core.info('Cache is write-only: will not restore from cache.'); core.info('Cache is write-only: will not restore from cache.');
cacheListener.setWriteOnly(); cacheListener.setWriteOnly();
@ -97791,11 +97796,6 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
await core.group('Restore Gradle state from cache', async () => { await core.group('Restore Gradle state from cache', async () => {
await gradleStateCache.restore(cacheListener); await gradleStateCache.restore(cacheListener);
}); });
if (cacheConfig.isCacheCleanupEnabled()) {
core.info('Preparing cache for cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
await cacheCleaner.prepare();
}
} }
exports.restore = restore; exports.restore = restore;
async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) { async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) {
@ -98493,7 +98493,6 @@ const github = __importStar(__nccwpck_require__(5438));
const cache = __importStar(__nccwpck_require__(7799)); const cache = __importStar(__nccwpck_require__(7799));
const deprecator = __importStar(__nccwpck_require__(2572)); const deprecator = __importStar(__nccwpck_require__(2572));
const summary_1 = __nccwpck_require__(1327); const summary_1 = __nccwpck_require__(1327);
const string_argv_1 = __nccwpck_require__(9663);
const path_1 = __importDefault(__nccwpck_require__(1017)); const path_1 = __importDefault(__nccwpck_require__(1017));
const ACTION_ID_VAR = 'GRADLE_ACTION_ID'; const ACTION_ID_VAR = 'GRADLE_ACTION_ID';
class DependencyGraphConfig { class DependencyGraphConfig {
@ -98510,10 +98509,8 @@ class DependencyGraphConfig {
return DependencyGraphOption.GenerateAndUpload; return DependencyGraphOption.GenerateAndUpload;
case 'download-and-submit': case 'download-and-submit':
return DependencyGraphOption.DownloadAndSubmit; return DependencyGraphOption.DownloadAndSubmit;
case 'clear':
return DependencyGraphOption.Clear;
} }
throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit, clear]. The default value is 'disabled'.`); throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit]. The default value is 'disabled'.`);
} }
getDependencyGraphContinueOnFailure() { getDependencyGraphContinueOnFailure() {
return getBooleanInput('dependency-graph-continue-on-failure', true); return getBooleanInput('dependency-graph-continue-on-failure', true);
@ -98559,7 +98556,6 @@ var DependencyGraphOption;
DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit"; DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit";
DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload"; DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload";
DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit"; DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit";
DependencyGraphOption["Clear"] = "clear";
})(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {})); })(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {}));
class CacheConfig { class CacheConfig {
isCacheDisabled() { isCacheDisabled() {
@ -98633,9 +98629,6 @@ class SummaryConfig {
if (!process.env[summary_1.SUMMARY_ENV_VAR]) { if (!process.env[summary_1.SUMMARY_ENV_VAR]) {
return false; return false;
} }
if (!this.isJobSummaryEnabled()) {
return false;
}
return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure); return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure);
} }
shouldAddPRComment(hasFailure) { shouldAddPRComment(hasFailure) {
@ -98651,9 +98644,6 @@ class SummaryConfig {
return hasFailure; return hasFailure;
} }
} }
isJobSummaryEnabled() {
return getBooleanInput('generate-job-summary', true);
}
getJobSummaryOption() { getJobSummaryOption() {
return this.parseJobSummaryOption('add-job-summary'); return this.parseJobSummaryOption('add-job-summary');
} }
@ -98685,10 +98675,10 @@ class BuildScanConfig {
return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement(); return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement();
} }
getBuildScanTermsOfUseUrl() { getBuildScanTermsOfUseUrl() {
return this.getTermsOfUseProp('build-scan-terms-of-use-url', 'build-scan-terms-of-service-url'); return core.getInput('build-scan-terms-of-use-url');
} }
getBuildScanTermsOfUseAgree() { getBuildScanTermsOfUseAgree() {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree'); return core.getInput('build-scan-terms-of-use-agree');
} }
getDevelocityAccessKey() { getDevelocityAccessKey() {
return (core.getInput('develocity-access-key') || return (core.getInput('develocity-access-key') ||
@ -98738,18 +98728,6 @@ class BuildScanConfig {
} }
return true; return true;
} }
getTermsOfUseProp(newPropName, oldPropName) {
const newProp = core.getInput(newPropName);
if (newProp !== '') {
return newProp;
}
const oldProp = core.getInput(oldPropName);
if (oldProp !== '') {
deprecator.recordDeprecation('The `build-scan-terms-of-service` input parameters have been renamed');
return oldProp;
}
return core.getInput(oldPropName);
}
} }
exports.BuildScanConfig = BuildScanConfig; exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY'; BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
@ -98766,19 +98744,18 @@ class GradleExecutionConfig {
: path_1.default.resolve(baseDirectory, buildRootDirectoryInput); : path_1.default.resolve(baseDirectory, buildRootDirectoryInput);
return resolvedBuildRootDirectory; return resolvedBuildRootDirectory;
} }
getArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.recordDeprecation('Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
return (0, string_argv_1.parseArgsStringToArgv)(input);
}
getDependencyResolutionTask() { getDependencyResolutionTask() {
return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies'; return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies';
} }
getAdditionalArguments() { getAdditionalArguments() {
return core.getInput('additional-arguments'); return core.getInput('additional-arguments');
} }
verifyNoArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.failOnUseOfRemovedFeature(`The 'arguments' parameter is no longer supported for ${getActionId()}`, 'Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
}
} }
exports.GradleExecutionConfig = GradleExecutionConfig; exports.GradleExecutionConfig = GradleExecutionConfig;
function doValidateWrappers() { function doValidateWrappers() {
@ -98929,7 +98906,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.recordDeprecation = exports.Deprecation = void 0; exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(2186)); const core = __importStar(__nccwpck_require__(2186));
const configuration_1 = __nccwpck_require__(5778); const configuration_1 = __nccwpck_require__(5778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md'; const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
@ -98953,6 +98930,11 @@ function recordDeprecation(message) {
} }
} }
exports.recordDeprecation = recordDeprecation; exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() { function getDeprecations() {
return recordedDeprecations; return recordedDeprecations;
} }
@ -100535,59 +100517,6 @@ module.exports = require("worker_threads");
"use strict"; "use strict";
module.exports = require("zlib"); module.exports = require("zlib");
/***/ }),
/***/ 9663:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
exports.__esModule = true;
exports.parseArgsStringToArgv = void 0;
function parseArgsStringToArgv(value, env, file) {
// ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes
// [^\s'"]+ or Match if not a space ' or "
// (['"])([^\5]*?)\5 or Match "quoted text" without quotes
// `\3` and `\5` are a backreference to the quote style (' or ") captured
var myRegexp = /([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;
var myString = value;
var myArray = [];
if (env) {
myArray.push(env);
}
if (file) {
myArray.push(file);
}
var match;
do {
// Each call to exec returns the next regex match as an array
match = myRegexp.exec(myString);
if (match !== null) {
// Index 1 in the array is the captured group if it exists
// Index 0 is the matched text, which we use if no captured group exists
myArray.push(firstString(match[1], match[6], match[0]));
}
} while (match !== null);
return myArray;
}
exports["default"] = parseArgsStringToArgv;
exports.parseArgsStringToArgv = parseArgsStringToArgv;
// Accepts any number of arguments, and returns the first one that is a string
// (even an empty string)
function firstString() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
for (var i = 0; i < args.length; i++) {
var arg = args[i];
if (typeof arg === "string") {
return arg;
}
}
}
/***/ }), /***/ }),
/***/ 899: /***/ 899:

File diff suppressed because one or more lines are too long

View File

@ -143047,7 +143047,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = void 0; exports.run = void 0;
const setupGradle = __importStar(__nccwpck_require__(18652)); const setupGradle = __importStar(__nccwpck_require__(18652));
const gradle = __importStar(__nccwpck_require__(94475)); const provisioner = __importStar(__nccwpck_require__(14042));
const dependencyGraph = __importStar(__nccwpck_require__(80)); const dependencyGraph = __importStar(__nccwpck_require__(80));
const configuration_1 = __nccwpck_require__(15778); const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572); const deprecation_collector_1 = __nccwpck_require__(22572);
@ -143055,18 +143055,17 @@ const errors_1 = __nccwpck_require__(36976);
async function run() { async function run() {
try { try {
if ((0, configuration_1.getActionId)() === 'gradle/gradle-build-action') { if ((0, configuration_1.getActionId)() === 'gradle/gradle-build-action') {
(0, deprecation_collector_1.recordDeprecation)('The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`'); (0, deprecation_collector_1.failOnUseOfRemovedFeature)('The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`');
}
else {
(0, configuration_1.setActionId)('gradle/actions/setup-gradle');
} }
(0, configuration_1.setActionId)('gradle/actions/setup-gradle');
if ((0, configuration_1.doValidateWrappers)()) { if ((0, configuration_1.doValidateWrappers)()) {
await setupGradle.checkNoInvalidWrapperJars(); await setupGradle.checkNoInvalidWrapperJars();
} }
await setupGradle.setup(new configuration_1.CacheConfig(), new configuration_1.BuildScanConfig()); await setupGradle.setup(new configuration_1.CacheConfig(), new configuration_1.BuildScanConfig());
await dependencyGraph.setup(new configuration_1.DependencyGraphConfig()); await dependencyGraph.setup(new configuration_1.DependencyGraphConfig());
const config = new configuration_1.GradleExecutionConfig(); const config = new configuration_1.GradleExecutionConfig();
await gradle.provisionAndMaybeExecute(config.getGradleVersion(), config.getBuildRootDirectory(), config.getArguments()); config.verifyNoArguments();
await provisioner.provisionGradle(config.getGradleVersion());
(0, deprecation_collector_1.saveDeprecationState)(); (0, deprecation_collector_1.saveDeprecationState)();
} }
catch (error) { catch (error) {
@ -143387,7 +143386,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0; exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0;
const cache = __importStar(__nccwpck_require__(27799)); const cache = __importStar(__nccwpck_require__(27799));
exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`; exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`;
exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`; exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`;
@ -143395,8 +143394,8 @@ exports.DEFAULT_DISABLED_REASON = `[Cache was disabled](https://github.com/gradl
exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`; exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`;
exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`; exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`;
exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`; exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`;
exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was not enabled. It must be explicitly enabled.`; exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.`;
exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled.`; exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.`;
exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.'; exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.';
exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = '[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). This is expected.'; exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = '[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). This is expected.';
class CacheListener { class CacheListener {
@ -143823,6 +143822,11 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
} }
gradleStateCache.init(); gradleStateCache.init();
core.saveState(CACHE_RESTORED_VAR, true); core.saveState(CACHE_RESTORED_VAR, true);
if (cacheConfig.isCacheCleanupEnabled()) {
core.info('Preparing cache for cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
await cacheCleaner.prepare();
}
if (cacheConfig.isCacheWriteOnly()) { if (cacheConfig.isCacheWriteOnly()) {
core.info('Cache is write-only: will not restore from cache.'); core.info('Cache is write-only: will not restore from cache.');
cacheListener.setWriteOnly(); cacheListener.setWriteOnly();
@ -143831,11 +143835,6 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
await core.group('Restore Gradle state from cache', async () => { await core.group('Restore Gradle state from cache', async () => {
await gradleStateCache.restore(cacheListener); await gradleStateCache.restore(cacheListener);
}); });
if (cacheConfig.isCacheCleanupEnabled()) {
core.info('Preparing cache for cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
await cacheCleaner.prepare();
}
} }
exports.restore = restore; exports.restore = restore;
async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) { async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) {
@ -144533,7 +144532,6 @@ const github = __importStar(__nccwpck_require__(95438));
const cache = __importStar(__nccwpck_require__(27799)); const cache = __importStar(__nccwpck_require__(27799));
const deprecator = __importStar(__nccwpck_require__(22572)); const deprecator = __importStar(__nccwpck_require__(22572));
const summary_1 = __nccwpck_require__(81327); const summary_1 = __nccwpck_require__(81327);
const string_argv_1 = __nccwpck_require__(19663);
const path_1 = __importDefault(__nccwpck_require__(71017)); const path_1 = __importDefault(__nccwpck_require__(71017));
const ACTION_ID_VAR = 'GRADLE_ACTION_ID'; const ACTION_ID_VAR = 'GRADLE_ACTION_ID';
class DependencyGraphConfig { class DependencyGraphConfig {
@ -144550,10 +144548,8 @@ class DependencyGraphConfig {
return DependencyGraphOption.GenerateAndUpload; return DependencyGraphOption.GenerateAndUpload;
case 'download-and-submit': case 'download-and-submit':
return DependencyGraphOption.DownloadAndSubmit; return DependencyGraphOption.DownloadAndSubmit;
case 'clear':
return DependencyGraphOption.Clear;
} }
throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit, clear]. The default value is 'disabled'.`); throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit]. The default value is 'disabled'.`);
} }
getDependencyGraphContinueOnFailure() { getDependencyGraphContinueOnFailure() {
return getBooleanInput('dependency-graph-continue-on-failure', true); return getBooleanInput('dependency-graph-continue-on-failure', true);
@ -144599,7 +144595,6 @@ var DependencyGraphOption;
DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit"; DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit";
DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload"; DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload";
DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit"; DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit";
DependencyGraphOption["Clear"] = "clear";
})(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {})); })(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {}));
class CacheConfig { class CacheConfig {
isCacheDisabled() { isCacheDisabled() {
@ -144673,9 +144668,6 @@ class SummaryConfig {
if (!process.env[summary_1.SUMMARY_ENV_VAR]) { if (!process.env[summary_1.SUMMARY_ENV_VAR]) {
return false; return false;
} }
if (!this.isJobSummaryEnabled()) {
return false;
}
return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure); return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure);
} }
shouldAddPRComment(hasFailure) { shouldAddPRComment(hasFailure) {
@ -144691,9 +144683,6 @@ class SummaryConfig {
return hasFailure; return hasFailure;
} }
} }
isJobSummaryEnabled() {
return getBooleanInput('generate-job-summary', true);
}
getJobSummaryOption() { getJobSummaryOption() {
return this.parseJobSummaryOption('add-job-summary'); return this.parseJobSummaryOption('add-job-summary');
} }
@ -144725,10 +144714,10 @@ class BuildScanConfig {
return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement(); return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement();
} }
getBuildScanTermsOfUseUrl() { getBuildScanTermsOfUseUrl() {
return this.getTermsOfUseProp('build-scan-terms-of-use-url', 'build-scan-terms-of-service-url'); return core.getInput('build-scan-terms-of-use-url');
} }
getBuildScanTermsOfUseAgree() { getBuildScanTermsOfUseAgree() {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree'); return core.getInput('build-scan-terms-of-use-agree');
} }
getDevelocityAccessKey() { getDevelocityAccessKey() {
return (core.getInput('develocity-access-key') || return (core.getInput('develocity-access-key') ||
@ -144778,18 +144767,6 @@ class BuildScanConfig {
} }
return true; return true;
} }
getTermsOfUseProp(newPropName, oldPropName) {
const newProp = core.getInput(newPropName);
if (newProp !== '') {
return newProp;
}
const oldProp = core.getInput(oldPropName);
if (oldProp !== '') {
deprecator.recordDeprecation('The `build-scan-terms-of-service` input parameters have been renamed');
return oldProp;
}
return core.getInput(oldPropName);
}
} }
exports.BuildScanConfig = BuildScanConfig; exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY'; BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
@ -144806,19 +144783,18 @@ class GradleExecutionConfig {
: path_1.default.resolve(baseDirectory, buildRootDirectoryInput); : path_1.default.resolve(baseDirectory, buildRootDirectoryInput);
return resolvedBuildRootDirectory; return resolvedBuildRootDirectory;
} }
getArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.recordDeprecation('Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
return (0, string_argv_1.parseArgsStringToArgv)(input);
}
getDependencyResolutionTask() { getDependencyResolutionTask() {
return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies'; return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies';
} }
getAdditionalArguments() { getAdditionalArguments() {
return core.getInput('additional-arguments'); return core.getInput('additional-arguments');
} }
verifyNoArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.failOnUseOfRemovedFeature(`The 'arguments' parameter is no longer supported for ${getActionId()}`, 'Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
}
} }
exports.GradleExecutionConfig = GradleExecutionConfig; exports.GradleExecutionConfig = GradleExecutionConfig;
function doValidateWrappers() { function doValidateWrappers() {
@ -145003,10 +144979,6 @@ async function setup(config) {
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext());
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)());
maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', config.getReportDirectory()); maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', config.getReportDirectory());
if (option === configuration_1.DependencyGraphOption.Clear) {
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_PROJECTS', '');
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS', '');
}
} }
exports.setup = setup; exports.setup = setup;
function maybeExportVariable(variableName, value) { function maybeExportVariable(variableName, value) {
@ -145023,7 +144995,6 @@ async function complete(config) {
case configuration_1.DependencyGraphOption.DownloadAndSubmit: case configuration_1.DependencyGraphOption.DownloadAndSubmit:
return; return;
case configuration_1.DependencyGraphOption.GenerateAndSubmit: case configuration_1.DependencyGraphOption.GenerateAndSubmit:
case configuration_1.DependencyGraphOption.Clear:
await findAndSubmitDependencyGraphs(config); await findAndSubmitDependencyGraphs(config);
return; return;
case configuration_1.DependencyGraphOption.GenerateAndUpload: case configuration_1.DependencyGraphOption.GenerateAndUpload:
@ -145238,7 +145209,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.recordDeprecation = exports.Deprecation = void 0; exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(42186)); const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778); const configuration_1 = __nccwpck_require__(15778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md'; const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
@ -145262,6 +145233,11 @@ function recordDeprecation(message) {
} }
} }
exports.recordDeprecation = recordDeprecation; exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() { function getDeprecations() {
return recordedDeprecations; return recordedDeprecations;
} }
@ -146852,59 +146828,6 @@ module.exports = require("worker_threads");
"use strict"; "use strict";
module.exports = require("zlib"); module.exports = require("zlib");
/***/ }),
/***/ 19663:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
exports.__esModule = true;
exports.parseArgsStringToArgv = void 0;
function parseArgsStringToArgv(value, env, file) {
// ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes
// [^\s'"]+ or Match if not a space ' or "
// (['"])([^\5]*?)\5 or Match "quoted text" without quotes
// `\3` and `\5` are a backreference to the quote style (' or ") captured
var myRegexp = /([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;
var myString = value;
var myArray = [];
if (env) {
myArray.push(env);
}
if (file) {
myArray.push(file);
}
var match;
do {
// Each call to exec returns the next regex match as an array
match = myRegexp.exec(myString);
if (match !== null) {
// Index 1 in the array is the captured group if it exists
// Index 0 is the matched text, which we use if no captured group exists
myArray.push(firstString(match[1], match[6], match[0]));
}
} while (match !== null);
return myArray;
}
exports["default"] = parseArgsStringToArgv;
exports.parseArgsStringToArgv = parseArgsStringToArgv;
// Accepts any number of arguments, and returns the first one that is a string
// (even an empty string)
function firstString() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
for (var i = 0; i < args.length; i++) {
var arg = args[i];
if (typeof arg === "string") {
return arg;
}
}
}
/***/ }), /***/ }),
/***/ 80899: /***/ 80899:

File diff suppressed because one or more lines are too long

View File

@ -143378,7 +143378,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0; exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0;
const cache = __importStar(__nccwpck_require__(27799)); const cache = __importStar(__nccwpck_require__(27799));
exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`; exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`;
exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`; exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`;
@ -143386,8 +143386,8 @@ exports.DEFAULT_DISABLED_REASON = `[Cache was disabled](https://github.com/gradl
exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`; exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`;
exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`; exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`;
exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`; exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`;
exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was not enabled. It must be explicitly enabled.`; exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.`;
exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled.`; exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.`;
exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.'; exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.';
exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = '[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). This is expected.'; exports.CLEANUP_DISABLED_DUE_TO_CONFIG_CACHE_HIT = '[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). This is expected.';
class CacheListener { class CacheListener {
@ -143814,6 +143814,11 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
} }
gradleStateCache.init(); gradleStateCache.init();
core.saveState(CACHE_RESTORED_VAR, true); core.saveState(CACHE_RESTORED_VAR, true);
if (cacheConfig.isCacheCleanupEnabled()) {
core.info('Preparing cache for cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
await cacheCleaner.prepare();
}
if (cacheConfig.isCacheWriteOnly()) { if (cacheConfig.isCacheWriteOnly()) {
core.info('Cache is write-only: will not restore from cache.'); core.info('Cache is write-only: will not restore from cache.');
cacheListener.setWriteOnly(); cacheListener.setWriteOnly();
@ -143822,11 +143827,6 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
await core.group('Restore Gradle state from cache', async () => { await core.group('Restore Gradle state from cache', async () => {
await gradleStateCache.restore(cacheListener); await gradleStateCache.restore(cacheListener);
}); });
if (cacheConfig.isCacheCleanupEnabled()) {
core.info('Preparing cache for cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
await cacheCleaner.prepare();
}
} }
exports.restore = restore; exports.restore = restore;
async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) { async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) {
@ -144524,7 +144524,6 @@ const github = __importStar(__nccwpck_require__(95438));
const cache = __importStar(__nccwpck_require__(27799)); const cache = __importStar(__nccwpck_require__(27799));
const deprecator = __importStar(__nccwpck_require__(22572)); const deprecator = __importStar(__nccwpck_require__(22572));
const summary_1 = __nccwpck_require__(81327); const summary_1 = __nccwpck_require__(81327);
const string_argv_1 = __nccwpck_require__(19663);
const path_1 = __importDefault(__nccwpck_require__(71017)); const path_1 = __importDefault(__nccwpck_require__(71017));
const ACTION_ID_VAR = 'GRADLE_ACTION_ID'; const ACTION_ID_VAR = 'GRADLE_ACTION_ID';
class DependencyGraphConfig { class DependencyGraphConfig {
@ -144541,10 +144540,8 @@ class DependencyGraphConfig {
return DependencyGraphOption.GenerateAndUpload; return DependencyGraphOption.GenerateAndUpload;
case 'download-and-submit': case 'download-and-submit':
return DependencyGraphOption.DownloadAndSubmit; return DependencyGraphOption.DownloadAndSubmit;
case 'clear':
return DependencyGraphOption.Clear;
} }
throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit, clear]. The default value is 'disabled'.`); throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit]. The default value is 'disabled'.`);
} }
getDependencyGraphContinueOnFailure() { getDependencyGraphContinueOnFailure() {
return getBooleanInput('dependency-graph-continue-on-failure', true); return getBooleanInput('dependency-graph-continue-on-failure', true);
@ -144590,7 +144587,6 @@ var DependencyGraphOption;
DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit"; DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit";
DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload"; DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload";
DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit"; DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit";
DependencyGraphOption["Clear"] = "clear";
})(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {})); })(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {}));
class CacheConfig { class CacheConfig {
isCacheDisabled() { isCacheDisabled() {
@ -144664,9 +144660,6 @@ class SummaryConfig {
if (!process.env[summary_1.SUMMARY_ENV_VAR]) { if (!process.env[summary_1.SUMMARY_ENV_VAR]) {
return false; return false;
} }
if (!this.isJobSummaryEnabled()) {
return false;
}
return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure); return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure);
} }
shouldAddPRComment(hasFailure) { shouldAddPRComment(hasFailure) {
@ -144682,9 +144675,6 @@ class SummaryConfig {
return hasFailure; return hasFailure;
} }
} }
isJobSummaryEnabled() {
return getBooleanInput('generate-job-summary', true);
}
getJobSummaryOption() { getJobSummaryOption() {
return this.parseJobSummaryOption('add-job-summary'); return this.parseJobSummaryOption('add-job-summary');
} }
@ -144716,10 +144706,10 @@ class BuildScanConfig {
return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement(); return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement();
} }
getBuildScanTermsOfUseUrl() { getBuildScanTermsOfUseUrl() {
return this.getTermsOfUseProp('build-scan-terms-of-use-url', 'build-scan-terms-of-service-url'); return core.getInput('build-scan-terms-of-use-url');
} }
getBuildScanTermsOfUseAgree() { getBuildScanTermsOfUseAgree() {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree'); return core.getInput('build-scan-terms-of-use-agree');
} }
getDevelocityAccessKey() { getDevelocityAccessKey() {
return (core.getInput('develocity-access-key') || return (core.getInput('develocity-access-key') ||
@ -144769,18 +144759,6 @@ class BuildScanConfig {
} }
return true; return true;
} }
getTermsOfUseProp(newPropName, oldPropName) {
const newProp = core.getInput(newPropName);
if (newProp !== '') {
return newProp;
}
const oldProp = core.getInput(oldPropName);
if (oldProp !== '') {
deprecator.recordDeprecation('The `build-scan-terms-of-service` input parameters have been renamed');
return oldProp;
}
return core.getInput(oldPropName);
}
} }
exports.BuildScanConfig = BuildScanConfig; exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY'; BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
@ -144797,19 +144775,18 @@ class GradleExecutionConfig {
: path_1.default.resolve(baseDirectory, buildRootDirectoryInput); : path_1.default.resolve(baseDirectory, buildRootDirectoryInput);
return resolvedBuildRootDirectory; return resolvedBuildRootDirectory;
} }
getArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.recordDeprecation('Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
return (0, string_argv_1.parseArgsStringToArgv)(input);
}
getDependencyResolutionTask() { getDependencyResolutionTask() {
return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies'; return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies';
} }
getAdditionalArguments() { getAdditionalArguments() {
return core.getInput('additional-arguments'); return core.getInput('additional-arguments');
} }
verifyNoArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.failOnUseOfRemovedFeature(`The 'arguments' parameter is no longer supported for ${getActionId()}`, 'Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
}
} }
exports.GradleExecutionConfig = GradleExecutionConfig; exports.GradleExecutionConfig = GradleExecutionConfig;
function doValidateWrappers() { function doValidateWrappers() {
@ -144994,10 +144971,6 @@ async function setup(config) {
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext());
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)());
maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', config.getReportDirectory()); maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', config.getReportDirectory());
if (option === configuration_1.DependencyGraphOption.Clear) {
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_PROJECTS', '');
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS', '');
}
} }
exports.setup = setup; exports.setup = setup;
function maybeExportVariable(variableName, value) { function maybeExportVariable(variableName, value) {
@ -145014,7 +144987,6 @@ async function complete(config) {
case configuration_1.DependencyGraphOption.DownloadAndSubmit: case configuration_1.DependencyGraphOption.DownloadAndSubmit:
return; return;
case configuration_1.DependencyGraphOption.GenerateAndSubmit: case configuration_1.DependencyGraphOption.GenerateAndSubmit:
case configuration_1.DependencyGraphOption.Clear:
await findAndSubmitDependencyGraphs(config); await findAndSubmitDependencyGraphs(config);
return; return;
case configuration_1.DependencyGraphOption.GenerateAndUpload: case configuration_1.DependencyGraphOption.GenerateAndUpload:
@ -145229,7 +145201,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.recordDeprecation = exports.Deprecation = void 0; exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(42186)); const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778); const configuration_1 = __nccwpck_require__(15778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md'; const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
@ -145253,6 +145225,11 @@ function recordDeprecation(message) {
} }
} }
exports.recordDeprecation = recordDeprecation; exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() { function getDeprecations() {
return recordedDeprecations; return recordedDeprecations;
} }
@ -146843,59 +146820,6 @@ module.exports = require("worker_threads");
"use strict"; "use strict";
module.exports = require("zlib"); module.exports = require("zlib");
/***/ }),
/***/ 19663:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
exports.__esModule = true;
exports.parseArgsStringToArgv = void 0;
function parseArgsStringToArgv(value, env, file) {
// ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes
// [^\s'"]+ or Match if not a space ' or "
// (['"])([^\5]*?)\5 or Match "quoted text" without quotes
// `\3` and `\5` are a backreference to the quote style (' or ") captured
var myRegexp = /([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;
var myString = value;
var myArray = [];
if (env) {
myArray.push(env);
}
if (file) {
myArray.push(file);
}
var match;
do {
// Each call to exec returns the next regex match as an array
match = myRegexp.exec(myString);
if (match !== null) {
// Index 1 in the array is the captured group if it exists
// Index 0 is the matched text, which we use if no captured group exists
myArray.push(firstString(match[1], match[6], match[0]));
}
} while (match !== null);
return myArray;
}
exports["default"] = parseArgsStringToArgv;
exports.parseArgsStringToArgv = parseArgsStringToArgv;
// Accepts any number of arguments, and returns the first one that is a string
// (even an empty string)
function firstString() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
for (var i = 0; i < args.length; i++) {
var arg = args[i];
if (typeof arg === "string") {
return arg;
}
}
}
/***/ }), /***/ }),
/***/ 80899: /***/ 80899:

File diff suppressed because one or more lines are too long

View File

@ -89894,11 +89894,9 @@ const errors_1 = __nccwpck_require__(6976);
async function run() { async function run() {
try { try {
if ((0, configuration_1.getActionId)() === 'gradle/wrapper-validation-action') { if ((0, configuration_1.getActionId)() === 'gradle/wrapper-validation-action') {
(0, deprecation_collector_1.recordDeprecation)('The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`'); (0, deprecation_collector_1.failOnUseOfRemovedFeature)('The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`');
}
else {
(0, configuration_1.setActionId)('gradle/actions/wrapper-validation');
} }
(0, configuration_1.setActionId)('gradle/actions/wrapper-validation');
const result = await validate.findInvalidWrapperJars(path.resolve('.'), +core.getInput('min-wrapper-count'), core.getInput('allow-snapshots') === 'true', core.getInput('allow-checksums').split(',')); const result = await validate.findInvalidWrapperJars(path.resolve('.'), +core.getInput('min-wrapper-count'), core.getInput('allow-snapshots') === 'true', core.getInput('allow-checksums').split(','));
if (result.isValid()) { if (result.isValid()) {
core.info(result.toDisplayString()); core.info(result.toDisplayString());
@ -89959,7 +89957,6 @@ const github = __importStar(__nccwpck_require__(5438));
const cache = __importStar(__nccwpck_require__(7799)); const cache = __importStar(__nccwpck_require__(7799));
const deprecator = __importStar(__nccwpck_require__(2572)); const deprecator = __importStar(__nccwpck_require__(2572));
const summary_1 = __nccwpck_require__(1327); const summary_1 = __nccwpck_require__(1327);
const string_argv_1 = __nccwpck_require__(9663);
const path_1 = __importDefault(__nccwpck_require__(1017)); const path_1 = __importDefault(__nccwpck_require__(1017));
const ACTION_ID_VAR = 'GRADLE_ACTION_ID'; const ACTION_ID_VAR = 'GRADLE_ACTION_ID';
class DependencyGraphConfig { class DependencyGraphConfig {
@ -89976,10 +89973,8 @@ class DependencyGraphConfig {
return DependencyGraphOption.GenerateAndUpload; return DependencyGraphOption.GenerateAndUpload;
case 'download-and-submit': case 'download-and-submit':
return DependencyGraphOption.DownloadAndSubmit; return DependencyGraphOption.DownloadAndSubmit;
case 'clear':
return DependencyGraphOption.Clear;
} }
throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit, clear]. The default value is 'disabled'.`); throw TypeError(`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit]. The default value is 'disabled'.`);
} }
getDependencyGraphContinueOnFailure() { getDependencyGraphContinueOnFailure() {
return getBooleanInput('dependency-graph-continue-on-failure', true); return getBooleanInput('dependency-graph-continue-on-failure', true);
@ -90025,7 +90020,6 @@ var DependencyGraphOption;
DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit"; DependencyGraphOption["GenerateAndSubmit"] = "generate-and-submit";
DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload"; DependencyGraphOption["GenerateAndUpload"] = "generate-and-upload";
DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit"; DependencyGraphOption["DownloadAndSubmit"] = "download-and-submit";
DependencyGraphOption["Clear"] = "clear";
})(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {})); })(DependencyGraphOption || (exports.DependencyGraphOption = DependencyGraphOption = {}));
class CacheConfig { class CacheConfig {
isCacheDisabled() { isCacheDisabled() {
@ -90099,9 +90093,6 @@ class SummaryConfig {
if (!process.env[summary_1.SUMMARY_ENV_VAR]) { if (!process.env[summary_1.SUMMARY_ENV_VAR]) {
return false; return false;
} }
if (!this.isJobSummaryEnabled()) {
return false;
}
return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure); return this.shouldAddJobSummary(this.getJobSummaryOption(), hasFailure);
} }
shouldAddPRComment(hasFailure) { shouldAddPRComment(hasFailure) {
@ -90117,9 +90108,6 @@ class SummaryConfig {
return hasFailure; return hasFailure;
} }
} }
isJobSummaryEnabled() {
return getBooleanInput('generate-job-summary', true);
}
getJobSummaryOption() { getJobSummaryOption() {
return this.parseJobSummaryOption('add-job-summary'); return this.parseJobSummaryOption('add-job-summary');
} }
@ -90151,10 +90139,10 @@ class BuildScanConfig {
return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement(); return getBooleanInput('build-scan-publish') && this.verifyTermsOfUseAgreement();
} }
getBuildScanTermsOfUseUrl() { getBuildScanTermsOfUseUrl() {
return this.getTermsOfUseProp('build-scan-terms-of-use-url', 'build-scan-terms-of-service-url'); return core.getInput('build-scan-terms-of-use-url');
} }
getBuildScanTermsOfUseAgree() { getBuildScanTermsOfUseAgree() {
return this.getTermsOfUseProp('build-scan-terms-of-use-agree', 'build-scan-terms-of-service-agree'); return core.getInput('build-scan-terms-of-use-agree');
} }
getDevelocityAccessKey() { getDevelocityAccessKey() {
return (core.getInput('develocity-access-key') || return (core.getInput('develocity-access-key') ||
@ -90204,18 +90192,6 @@ class BuildScanConfig {
} }
return true; return true;
} }
getTermsOfUseProp(newPropName, oldPropName) {
const newProp = core.getInput(newPropName);
if (newProp !== '') {
return newProp;
}
const oldProp = core.getInput(oldPropName);
if (oldProp !== '') {
deprecator.recordDeprecation('The `build-scan-terms-of-service` input parameters have been renamed');
return oldProp;
}
return core.getInput(oldPropName);
}
} }
exports.BuildScanConfig = BuildScanConfig; exports.BuildScanConfig = BuildScanConfig;
BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY'; BuildScanConfig.DevelocityAccessKeyEnvVar = 'DEVELOCITY_ACCESS_KEY';
@ -90232,19 +90208,18 @@ class GradleExecutionConfig {
: path_1.default.resolve(baseDirectory, buildRootDirectoryInput); : path_1.default.resolve(baseDirectory, buildRootDirectoryInput);
return resolvedBuildRootDirectory; return resolvedBuildRootDirectory;
} }
getArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.recordDeprecation('Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
return (0, string_argv_1.parseArgsStringToArgv)(input);
}
getDependencyResolutionTask() { getDependencyResolutionTask() {
return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies'; return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies';
} }
getAdditionalArguments() { getAdditionalArguments() {
return core.getInput('additional-arguments'); return core.getInput('additional-arguments');
} }
verifyNoArguments() {
const input = core.getInput('arguments');
if (input.length !== 0) {
deprecator.failOnUseOfRemovedFeature(`The 'arguments' parameter is no longer supported for ${getActionId()}`, 'Using the action to execute Gradle via the `arguments` parameter is deprecated');
}
}
} }
exports.GradleExecutionConfig = GradleExecutionConfig; exports.GradleExecutionConfig = GradleExecutionConfig;
function doValidateWrappers() { function doValidateWrappers() {
@ -90334,7 +90309,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.recordDeprecation = exports.Deprecation = void 0; exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(2186)); const core = __importStar(__nccwpck_require__(2186));
const configuration_1 = __nccwpck_require__(5778); const configuration_1 = __nccwpck_require__(5778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md'; const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
@ -90358,6 +90333,11 @@ function recordDeprecation(message) {
} }
} }
exports.recordDeprecation = recordDeprecation; exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() { function getDeprecations() {
return recordedDeprecations; return recordedDeprecations;
} }
@ -91036,59 +91016,6 @@ module.exports = require("worker_threads");
"use strict"; "use strict";
module.exports = require("zlib"); module.exports = require("zlib");
/***/ }),
/***/ 9663:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
exports.__esModule = true;
exports.parseArgsStringToArgv = void 0;
function parseArgsStringToArgv(value, env, file) {
// ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes
// [^\s'"]+ or Match if not a space ' or "
// (['"])([^\5]*?)\5 or Match "quoted text" without quotes
// `\3` and `\5` are a backreference to the quote style (' or ") captured
var myRegexp = /([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;
var myString = value;
var myArray = [];
if (env) {
myArray.push(env);
}
if (file) {
myArray.push(file);
}
var match;
do {
// Each call to exec returns the next regex match as an array
match = myRegexp.exec(myString);
if (match !== null) {
// Index 1 in the array is the captured group if it exists
// Index 0 is the matched text, which we use if no captured group exists
myArray.push(firstString(match[1], match[6], match[0]));
}
} while (match !== null);
return myArray;
}
exports["default"] = parseArgsStringToArgv;
exports.parseArgsStringToArgv = parseArgsStringToArgv;
// Accepts any number of arguments, and returns the first one that is a string
// (even an empty string)
function firstString() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
for (var i = 0; i < args.length; i++) {
var arg = args[i];
if (typeof arg === "string") {
return arg;
}
}
}
/***/ }), /***/ }),
/***/ 3765: /***/ 3765:

File diff suppressed because one or more lines are too long