-
Notifications
You must be signed in to change notification settings - Fork 799
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
When trying to install Oracle JDK 8, it gave an error:
Run actions/setup-java@v4
Installed distributions
Trying to resolve the latest version from remote
Error: Oracle JDK is only supported for JDK 17 and later
Task version:
4
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Repro steps:
Github Actions:
...
jobs:
jdkwithmaven:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'oracle'
- name: Set up Maven Cache
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
...
Expected behavior:
It should install JDK 8 normally since it is an LTS version.
Actual behavior:
Error: Oracle JDK is only supported for JDK 17 and later
reneleonhardt
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working