Unverified Commit 215b7e5f authored by Bruno Borges's avatar Bruno Borges Committed by GitHub
Browse files

Deprecate setup-java v2 (#1196)

Co-authored-by: default avatarCopilot App <[email protected]>
parent 91d3aa49
Loading
Loading
Loading
Loading
+1
Changes for action.yml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
name: 'Setup Java JDK'
description: 'Set up a specific version of the Java JDK and add the
   command-line tools to the PATH'
deprecationMessage: 'setup-java v2 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.'
author: 'GitHub'
inputs:
  java-version:
+2
Changes for dist/setup/index.js: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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);
+5
Changes for src/setup-java.ts: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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);