Deprecate setup-java v1 (#1197)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Bruno BorgesandCopilot App authored and GitHub committed 2026-08-04 11:58:48 -04:00
1 parent b6e674f4b7
commit 0f62d2ad84
3 files changed
+8

No files matched your search

+5
View File
@@ -5,8 +5,13 @@ import * as gpg from './gpg';
import * as constants from './constants';
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() {
try {
core.warning(DEPRECATION_WARNING);
let version = core.getInput(constants.INPUT_VERSION);
if (!version) {
version = core.getInput(constants.INPUT_JAVA_VERSION, {required: true});