Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Add deprecation warning #29

Merged
merged 2 commits into from
May 27, 2022
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
6 changes: 3 additions & 3 deletions .licenses/npm/@actions/core.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions .licenses/npm/@actions/http-client-2.0.1.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
# 🚨 Notice

The joschi/setup-jdk GitHub Action is deprecated.

Please consider switching to the official [actions/setup-java](https://github.com/actions/setup-java) action v2 or later which also supports AdoptOpenJDK and its successor Eclipse Temurin:

https://github.com/actions/setup-java/tree/v2.5.0#basic

In order to migrate to [actions/setup-java](https://github.com/actions/setup-java) it is sufficient to replace the name of the action and set the `distribution` parameter to `temurin`.

**Before:**

```yaml
steps:
- uses: actions/checkout@v2
- uses: joschi/setup-jdk@v2
with:
java-version: '11' # The OpenJDK version to make available on the path
architecture: 'x64' # defaults to 'x64'
- run: java -cp java HelloWorldApp

**After:**

```
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '11'
architecture: 'x64' # defaults to 'x64'
- run: java -cp java HelloWorldApp
```

# setup-jdk

<p align="left">
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Setup AdoptOpenJDK'
description: 'Set up a specific version of the Java JDK from AdoptOpenJDK and add the
command-line tools to the PATH'
name: 'Setup AdoptOpenJDK (deprecated)'
description: 'DEPRECATED: Please use actions/setup-java v2 or later. Set up a specific version of the Java JDK from AdoptOpenJDK and add the
command-line tools to the PATH.'
author: 'Jochen Schalanda'
inputs:
release_type:
Expand Down
Loading