[bot] Update dist directory
Some checks are pending
CI-check-and-unit-test / check-format-and-unit-test (push) Waiting to run
CI-codeql / Analyze (javascript-typescript) (push) Waiting to run
CI-init-script-check / test-init-scripts (push) Waiting to run
CI-integ-test / sample-gradle-plugin (push) Blocked by required conditions
CI-integ-test / toolchain-detection (push) Blocked by required conditions
CI-integ-test / wrapper-validation (push) Blocked by required conditions
CI-integ-test / cache-cleanup (push) Blocked by required conditions
CI-integ-test / caching-config (push) Blocked by required conditions
CI-integ-test / dependency-graph (push) Blocked by required conditions
CI-integ-test / dependency-submission (push) Blocked by required conditions
CI-integ-test / dependency-submission-failures (push) Blocked by required conditions
CI-integ-test / develocity-injection (push) Blocked by required conditions
CI-integ-test / provision-gradle-versions (push) Blocked by required conditions
CI-integ-test / restore-configuration-cache (push) Blocked by required conditions
CI-integ-test / restore-containerized-gradle-home (push) Blocked by required conditions
CI-integ-test / restore-custom-gradle-home (push) Blocked by required conditions
CI-integ-test / restore-gradle-home (push) Blocked by required conditions
CI-integ-test / restore-java-toolchain (push) Blocked by required conditions
CI-integ-test / sample-kotlin-dsl (push) Blocked by required conditions
CI-integ-test / determine-suite (push) Waiting to run
CI-integ-test / build-distribution (push) Blocked by required conditions
CI-integ-test / build-scan-publish (push) Blocked by required conditions
CI-update-dist / update-dist (push) Waiting to run

This commit is contained in:
bigdaz 2024-07-22 15:17:14 +00:00 committed by daz
parent 1a11891cfe
commit 6c9e547314
No known key found for this signature in database
10 changed files with 157 additions and 50 deletions

View file

@ -145251,11 +145251,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getErrors = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
const recordedDeprecations = [];
const recordedErrors = [];
class Deprecation {
constructor(message) {
this.message = message;
@ -145277,13 +145278,19 @@ function recordDeprecation(message) {
exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
const errorMessage = `${removalMessage}. See ${deprecation.getDocumentationLink()}`;
recordedErrors.push(errorMessage);
core.setFailed(errorMessage);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() {
return recordedDeprecations;
}
exports.getDeprecations = getDeprecations;
function getErrors() {
return recordedErrors;
}
exports.getErrors = getErrors;
function emitDeprecationWarnings(hasJobSummary = true) {
if (recordedDeprecations.length > 0) {
core.warning(`This job uses deprecated functionality from the '${(0, configuration_1.getActionId)()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`);
@ -145294,17 +145301,21 @@ function emitDeprecationWarnings(hasJobSummary = true) {
}
exports.emitDeprecationWarnings = emitDeprecationWarnings;
function saveDeprecationState() {
core.saveState('deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_errors', JSON.stringify(recordedErrors));
}
exports.saveDeprecationState = saveDeprecationState;
function restoreDeprecationState() {
const stringRep = core.getState('deprecations');
if (stringRep === '') {
return;
const savedDeprecations = core.getState('deprecation-collector_deprecations');
if (savedDeprecations) {
JSON.parse(savedDeprecations).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
const savedErrors = core.getState('deprecation-collector_errors');
if (savedErrors) {
recordedErrors.push(...JSON.parse(savedErrors));
}
JSON.parse(stringRep).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
exports.restoreDeprecationState = restoreDeprecationState;
@ -146003,6 +146014,12 @@ const request_error_1 = __nccwpck_require__(10537);
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function generateJobSummary(buildResults, cachingReport, config) {
const errors = renderErrors();
if (errors) {
core.summary.addRaw(errors);
await core.summary.write();
return;
}
const summaryTable = renderSummaryTable(buildResults.results);
const hasFailure = buildResults.anyFailed();
if (config.shouldGenerateJobSummary(hasFailure)) {
@ -146069,6 +146086,13 @@ function renderSummaryTable(results) {
return `${renderDeprecations()}\n${renderBuildResults(results)}`;
}
exports.renderSummaryTable = renderSummaryTable;
function renderErrors() {
const errors = (0, deprecation_collector_1.getErrors)();
if (errors.length === 0) {
return undefined;
}
return errors.map(error => `<b>:x: ${error}</b>`).join('\n');
}
function renderDeprecations() {
const deprecations = (0, deprecation_collector_1.getDeprecations)();
if (deprecations.length === 0) {

File diff suppressed because one or more lines are too long

View file

@ -98930,11 +98930,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getErrors = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(2186));
const configuration_1 = __nccwpck_require__(5778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
const recordedDeprecations = [];
const recordedErrors = [];
class Deprecation {
constructor(message) {
this.message = message;
@ -98956,13 +98957,19 @@ function recordDeprecation(message) {
exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
const errorMessage = `${removalMessage}. See ${deprecation.getDocumentationLink()}`;
recordedErrors.push(errorMessage);
core.setFailed(errorMessage);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() {
return recordedDeprecations;
}
exports.getDeprecations = getDeprecations;
function getErrors() {
return recordedErrors;
}
exports.getErrors = getErrors;
function emitDeprecationWarnings(hasJobSummary = true) {
if (recordedDeprecations.length > 0) {
core.warning(`This job uses deprecated functionality from the '${(0, configuration_1.getActionId)()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`);
@ -98973,17 +98980,21 @@ function emitDeprecationWarnings(hasJobSummary = true) {
}
exports.emitDeprecationWarnings = emitDeprecationWarnings;
function saveDeprecationState() {
core.saveState('deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_errors', JSON.stringify(recordedErrors));
}
exports.saveDeprecationState = saveDeprecationState;
function restoreDeprecationState() {
const stringRep = core.getState('deprecations');
if (stringRep === '') {
return;
const savedDeprecations = core.getState('deprecation-collector_deprecations');
if (savedDeprecations) {
JSON.parse(savedDeprecations).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
const savedErrors = core.getState('deprecation-collector_errors');
if (savedErrors) {
recordedErrors.push(...JSON.parse(savedErrors));
}
JSON.parse(stringRep).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
exports.restoreDeprecationState = restoreDeprecationState;
@ -99682,6 +99693,12 @@ const request_error_1 = __nccwpck_require__(537);
const configuration_1 = __nccwpck_require__(5778);
const deprecation_collector_1 = __nccwpck_require__(2572);
async function generateJobSummary(buildResults, cachingReport, config) {
const errors = renderErrors();
if (errors) {
core.summary.addRaw(errors);
await core.summary.write();
return;
}
const summaryTable = renderSummaryTable(buildResults.results);
const hasFailure = buildResults.anyFailed();
if (config.shouldGenerateJobSummary(hasFailure)) {
@ -99748,6 +99765,13 @@ function renderSummaryTable(results) {
return `${renderDeprecations()}\n${renderBuildResults(results)}`;
}
exports.renderSummaryTable = renderSummaryTable;
function renderErrors() {
const errors = (0, deprecation_collector_1.getErrors)();
if (errors.length === 0) {
return undefined;
}
return errors.map(error => `<b>:x: ${error}</b>`).join('\n');
}
function renderDeprecations() {
const deprecations = (0, deprecation_collector_1.getDeprecations)();
if (deprecations.length === 0) {

File diff suppressed because one or more lines are too long

View file

@ -145239,11 +145239,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getErrors = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
const recordedDeprecations = [];
const recordedErrors = [];
class Deprecation {
constructor(message) {
this.message = message;
@ -145265,13 +145266,19 @@ function recordDeprecation(message) {
exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
const errorMessage = `${removalMessage}. See ${deprecation.getDocumentationLink()}`;
recordedErrors.push(errorMessage);
core.setFailed(errorMessage);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() {
return recordedDeprecations;
}
exports.getDeprecations = getDeprecations;
function getErrors() {
return recordedErrors;
}
exports.getErrors = getErrors;
function emitDeprecationWarnings(hasJobSummary = true) {
if (recordedDeprecations.length > 0) {
core.warning(`This job uses deprecated functionality from the '${(0, configuration_1.getActionId)()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`);
@ -145282,17 +145289,21 @@ function emitDeprecationWarnings(hasJobSummary = true) {
}
exports.emitDeprecationWarnings = emitDeprecationWarnings;
function saveDeprecationState() {
core.saveState('deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_errors', JSON.stringify(recordedErrors));
}
exports.saveDeprecationState = saveDeprecationState;
function restoreDeprecationState() {
const stringRep = core.getState('deprecations');
if (stringRep === '') {
return;
const savedDeprecations = core.getState('deprecation-collector_deprecations');
if (savedDeprecations) {
JSON.parse(savedDeprecations).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
const savedErrors = core.getState('deprecation-collector_errors');
if (savedErrors) {
recordedErrors.push(...JSON.parse(savedErrors));
}
JSON.parse(stringRep).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
exports.restoreDeprecationState = restoreDeprecationState;
@ -145991,6 +146002,12 @@ const request_error_1 = __nccwpck_require__(10537);
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function generateJobSummary(buildResults, cachingReport, config) {
const errors = renderErrors();
if (errors) {
core.summary.addRaw(errors);
await core.summary.write();
return;
}
const summaryTable = renderSummaryTable(buildResults.results);
const hasFailure = buildResults.anyFailed();
if (config.shouldGenerateJobSummary(hasFailure)) {
@ -146057,6 +146074,13 @@ function renderSummaryTable(results) {
return `${renderDeprecations()}\n${renderBuildResults(results)}`;
}
exports.renderSummaryTable = renderSummaryTable;
function renderErrors() {
const errors = (0, deprecation_collector_1.getErrors)();
if (errors.length === 0) {
return undefined;
}
return errors.map(error => `<b>:x: ${error}</b>`).join('\n');
}
function renderDeprecations() {
const deprecations = (0, deprecation_collector_1.getDeprecations)();
if (deprecations.length === 0) {

File diff suppressed because one or more lines are too long

View file

@ -145231,11 +145231,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getErrors = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
const recordedDeprecations = [];
const recordedErrors = [];
class Deprecation {
constructor(message) {
this.message = message;
@ -145257,13 +145258,19 @@ function recordDeprecation(message) {
exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
const errorMessage = `${removalMessage}. See ${deprecation.getDocumentationLink()}`;
recordedErrors.push(errorMessage);
core.setFailed(errorMessage);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() {
return recordedDeprecations;
}
exports.getDeprecations = getDeprecations;
function getErrors() {
return recordedErrors;
}
exports.getErrors = getErrors;
function emitDeprecationWarnings(hasJobSummary = true) {
if (recordedDeprecations.length > 0) {
core.warning(`This job uses deprecated functionality from the '${(0, configuration_1.getActionId)()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`);
@ -145274,17 +145281,21 @@ function emitDeprecationWarnings(hasJobSummary = true) {
}
exports.emitDeprecationWarnings = emitDeprecationWarnings;
function saveDeprecationState() {
core.saveState('deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_errors', JSON.stringify(recordedErrors));
}
exports.saveDeprecationState = saveDeprecationState;
function restoreDeprecationState() {
const stringRep = core.getState('deprecations');
if (stringRep === '') {
return;
const savedDeprecations = core.getState('deprecation-collector_deprecations');
if (savedDeprecations) {
JSON.parse(savedDeprecations).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
const savedErrors = core.getState('deprecation-collector_errors');
if (savedErrors) {
recordedErrors.push(...JSON.parse(savedErrors));
}
JSON.parse(stringRep).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
exports.restoreDeprecationState = restoreDeprecationState;
@ -145983,6 +145994,12 @@ const request_error_1 = __nccwpck_require__(10537);
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function generateJobSummary(buildResults, cachingReport, config) {
const errors = renderErrors();
if (errors) {
core.summary.addRaw(errors);
await core.summary.write();
return;
}
const summaryTable = renderSummaryTable(buildResults.results);
const hasFailure = buildResults.anyFailed();
if (config.shouldGenerateJobSummary(hasFailure)) {
@ -146049,6 +146066,13 @@ function renderSummaryTable(results) {
return `${renderDeprecations()}\n${renderBuildResults(results)}`;
}
exports.renderSummaryTable = renderSummaryTable;
function renderErrors() {
const errors = (0, deprecation_collector_1.getErrors)();
if (errors.length === 0) {
return undefined;
}
return errors.map(error => `<b>:x: ${error}</b>`).join('\n');
}
function renderDeprecations() {
const deprecations = (0, deprecation_collector_1.getDeprecations)();
if (deprecations.length === 0) {

File diff suppressed because one or more lines are too long

View file

@ -90332,11 +90332,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getErrors = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(2186));
const configuration_1 = __nccwpck_require__(5778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
const recordedDeprecations = [];
const recordedErrors = [];
class Deprecation {
constructor(message) {
this.message = message;
@ -90358,13 +90359,19 @@ function recordDeprecation(message) {
exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
const errorMessage = `${removalMessage}. See ${deprecation.getDocumentationLink()}`;
recordedErrors.push(errorMessage);
core.setFailed(errorMessage);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() {
return recordedDeprecations;
}
exports.getDeprecations = getDeprecations;
function getErrors() {
return recordedErrors;
}
exports.getErrors = getErrors;
function emitDeprecationWarnings(hasJobSummary = true) {
if (recordedDeprecations.length > 0) {
core.warning(`This job uses deprecated functionality from the '${(0, configuration_1.getActionId)()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`);
@ -90375,17 +90382,21 @@ function emitDeprecationWarnings(hasJobSummary = true) {
}
exports.emitDeprecationWarnings = emitDeprecationWarnings;
function saveDeprecationState() {
core.saveState('deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_errors', JSON.stringify(recordedErrors));
}
exports.saveDeprecationState = saveDeprecationState;
function restoreDeprecationState() {
const stringRep = core.getState('deprecations');
if (stringRep === '') {
return;
const savedDeprecations = core.getState('deprecation-collector_deprecations');
if (savedDeprecations) {
JSON.parse(savedDeprecations).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
const savedErrors = core.getState('deprecation-collector_errors');
if (savedErrors) {
recordedErrors.push(...JSON.parse(savedErrors));
}
JSON.parse(stringRep).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
exports.restoreDeprecationState = restoreDeprecationState;

File diff suppressed because one or more lines are too long