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

Deprecate setup-java v1 (#1197)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Bruno Borges
2026-08-04 11:58:48 -04:00
committed by GitHub
parent b6e674f4b7
commit 0f62d2ad84
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
name: 'Setup Java JDK' name: 'Setup Java JDK'
description: 'Set up a specific version of the Java JDK and add the description: 'Set up a specific version of the Java JDK and add the
command-line tools to the PATH' command-line tools to the PATH'
deprecationMessage: 'setup-java v1 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.'
author: 'GitHub' author: 'GitHub'
inputs: inputs:
java-version: java-version:
+2
View File
@@ -30603,9 +30603,11 @@ const auth = __importStar(__webpack_require__(331));
const gpg = __importStar(__webpack_require__(884)); const gpg = __importStar(__webpack_require__(884));
const constants = __importStar(__webpack_require__(694)); const constants = __importStar(__webpack_require__(694));
const path = __importStar(__webpack_require__(622)); const path = __importStar(__webpack_require__(622));
const DEPRECATION_WARNING = 'setup-java v1 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.';
function run() { function run() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
try { try {
core.warning(DEPRECATION_WARNING);
let version = core.getInput(constants.INPUT_VERSION); let version = core.getInput(constants.INPUT_VERSION);
if (!version) { if (!version) {
version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true }); version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true });
+5
View File
@@ -5,8 +5,13 @@ import * as gpg from './gpg';
import * as constants from './constants'; import * as constants from './constants';
import * as path from 'path'; import * as path from 'path';
const DEPRECATION_WARNING =
'setup-java v1 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.';
async function run() { async function run() {
try { try {
core.warning(DEPRECATION_WARNING);
let version = core.getInput(constants.INPUT_VERSION); let version = core.getInput(constants.INPUT_VERSION);
if (!version) { if (!version) {
version = core.getInput(constants.INPUT_JAVA_VERSION, {required: true}); version = core.getInput(constants.INPUT_JAVA_VERSION, {required: true});