Deprecate setup-java v2 (#1196)

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:59:31 -04:00
1 parent 91d3aa4956
commit 215b7e5f82
3 files changed
+8

No files matched your search

+5
View File
@@ -7,8 +7,13 @@ import * as path from 'path';
import { getJavaDistribution } from './distributions/distribution-factory';
import { JavaInstallerOptions } from './distributions/base-models';
const DEPRECATION_WARNING =
'setup-java v2 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.';
async function run() {
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);