diff --git a/README.md b/README.md index 2a33308..8763a6d 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ steps: #### Supported version syntax The `java-version` input supports an exact version or a version range using [SemVer](https://semver.org/) notation: -- major versions: `8`, `11`, `16`, `17` +- major versions: `8`, `11`, `16`, `17`, `21` - more specific versions: `17.0`, `11.0`, `11.0.4`, `8.0.232`, `8.0.282+8` - early access (EA) versions: `15-ea`, `15.0.0-ea`, `15.0.0-ea.2`, `15.0.0+2-ea` diff --git a/__tests__/distributors/oracle-installer.test.ts b/__tests__/distributors/oracle-installer.test.ts index ad16eca..356c0c6 100644 --- a/__tests__/distributors/oracle-installer.test.ts +++ b/__tests__/distributors/oracle-installer.test.ts @@ -22,6 +22,11 @@ describe('findPackageForDownload', () => { }); it.each([ + [ + '21', + '21', + 'https://download.oracle.com/java/21/latest/jdk-21_{{OS_TYPE}}-x64_bin.{{ARCHIVE_TYPE}}' + ], [ '20', '20', diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index e13366d..48aecfd 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -121,7 +121,7 @@ steps: - uses: actions/setup-java@v3 with: distribution: 'oracle' - java-version: '17' + java-version: '21' - run: java -cp java HelloWorldApp ```