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
Deprecate setup-java v1
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
  • Loading branch information
brunoborges and Copilot committed Aug 4, 2026
commit 280c6ba95e6a9ccc047aa9ea490b4cac640dea93
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 v1 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 @@ -30603,9 +30603,11 @@ const auth = __importStar(__webpack_require__(331));
const gpg = __importStar(__webpack_require__(884));
const constants = __importStar(__webpack_require__(694));
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() {
return __awaiter(this, void 0, void 0, function* () {
try {
core.warning(DEPRECATION_WARNING);
let version = core.getInput(constants.INPUT_VERSION);
if (!version) {
version = core.getInput(constants.INPUT_JAVA_VERSION, { 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 @@ -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});
Expand Down
Loading