Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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 v3 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.'
author: 'GitHub'
inputs:
java-version:
Expand Down
2 changes: 2 additions & 0 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132179,9 +132179,11 @@ const constants = __importStar(__nccwpck_require__(69042));
const cache_1 = __nccwpck_require__(64810);
const path = __importStar(__nccwpck_require__(71017));
const distribution_factory_1 = __nccwpck_require__(10924);
const DEPRECATION_WARNING = 'setup-java v3 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 versions = core.getMultilineInput(constants.INPUT_JAVA_VERSION);
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, {
required: true
Expand Down
5 changes: 5 additions & 0 deletions src/setup-java.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ import * as path from 'path';
import {getJavaDistribution} from './distributions/distribution-factory';
import {JavaInstallerOptions} from './distributions/base-models';

const DEPRECATION_WARNING =
'setup-java v3 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.';

async function run() {
try {
core.warning(DEPRECATION_WARNING);

const versions = core.getMultilineInput(constants.INPUT_JAVA_VERSION);
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, {
required: true
Expand Down
Loading