5
0
mirror of https://gitea.com/actions/setup-java.git synced 2026-08-05 02:31:18 +00:00

Deprecate setup-java v2 (#1196)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Bruno Borges
2026-08-04 11:59:31 -04:00
committed by GitHub
parent 91d3aa4956
commit 215b7e5f82
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -85156,9 +85156,11 @@ const constants = __importStar(__webpack_require__(694));
const cache_1 = __webpack_require__(319);
const path = __importStar(__webpack_require__(622));
const distribution_factory_1 = __webpack_require__(729);
const DEPRECATION_WARNING = 'setup-java v2 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.';
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
core.warning(DEPRECATION_WARNING);
const version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true });
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, { required: true });
const architecture = core.getInput(constants.INPUT_ARCHITECTURE);