Skip to content

Commit 7a0114d

Browse files
authored
Java 21 / JDK 21: General Availability (#59)
Closes #58
1 parent a67c954 commit 7a0114d

File tree

8 files changed

+22
-17
lines changed

8 files changed

+22
-17
lines changed

.github/workflows/manual-java.net-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
max-parallel: 3
1010
matrix:
1111
os: [ ubuntu-latest, macos-latest, windows-latest ]
12-
release: [ 20, 19, 18 ]
12+
release: [ 22, 21, 20 ]
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- name: 'Check out repository'

.github/workflows/manual-oracle.com-17-archive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
os: [ ubuntu-latest , macos-latest, windows-latest ]
1313
release: [ 17 ]
14-
version: [ 17, 17.0.1, 17.0.2 ]
14+
version: [ 17, 17.0.1, 17.0.2, 17.0.3, 17.0.3.1, 17.0.4, 17.0.4.1, 17.0.5, 17.0.6, 17.0.7, 17.0.8 ]
1515
runs-on: ${{ matrix.os }}
1616
steps:
1717
- name: 'Check out repository'

.github/workflows/manual-website-release-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
type: string
2222
install:
2323
description: 'Run actions/setup-java to install the downloaded JDK'
24-
default: 'true'
24+
default: true
2525
required: true
2626
type: boolean
2727

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ This project uses tags and branches for [release management](https://docs.github
66

77

88
## [Unreleased]
9+
_nothing noteworthy, yet_
10+
11+
## [1.3.2] - 2023-09-19
912
### Added
1013
- Java `22` to the list of Early-Access releases
1114
### Changed
12-
- Default value of `release` input to Java `20`
15+
- Default value of `release` input to Java `21`
1316

1417
## [1.3.1] - 2022-10-20
1518
### Added
@@ -47,7 +50,8 @@ This project uses tags and branches for [release management](https://docs.github
4750
### Added
4851
- Initial Release
4952

50-
[Unreleased]: https://github.com/oracle-actions/setup-java/compare/v1.3.1...HEAD
53+
[Unreleased]: https://github.com/oracle-actions/setup-java/compare/v1.3.2...HEAD
54+
[1.3.2]: https://github.com/oracle-actions/setup-java/compare/v1.3.1...v1.3.2
5155
[1.3.1]: https://github.com/oracle-actions/setup-java/compare/v1.3.0...v1.3.1
5256
[1.3.0]: https://github.com/oracle-actions/setup-java/compare/v1.2.1...v1.3.0
5357
[1.2.1]: https://github.com/oracle-actions/setup-java/compare/v1.2.0...v1.2.1

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ JDKs built by Oracle are [Oracle JDK](https://www.oracle.com/java/technologies/d
99
| Input Name | Default Value | Description |
1010
|-----------------------|--------------:|-----------------------------------------------------------------|
1111
| `website` | `oracle.com` | From where the JDK should be downloaded from. |
12-
| `release` | `20` | Java feature release number or name of an Early-Access project. |
12+
| `release` | `21` | Java feature release number or name of an Early-Access project. |
1313
| `version` | `latest` | An explicit version of a Java release. |
1414
| `install` | `true` | Install the downloaded JDK archive file. |
1515
| `install-as-version` | _empty_ | Control the value passed as `java-version` |
@@ -35,7 +35,7 @@ Following values are supported:
3535
### Input `release`
3636

3737
The `release` input denotes a Java feature release number (`17`, `18`, ...) or a name of an Early-Access project (`loom`, ...).
38-
It defaults to the current General-Availability Release for the Java SE platform., which is `20` as of today.
38+
It defaults to the current General-Availability Release for the Java SE platform., which is `21` as of today.
3939

4040
Note that websites may offer a different set of available releases.
4141
For example, `oracle.com` only offers releases of `17` and above; it does not offer any Early-Access releases.
@@ -91,11 +91,11 @@ The following examples use the [JDK Script Friendly URLs](https://www.oracle.com
9191

9292
```yaml
9393
steps:
94-
- name: 'Set up latest Oracle JDK 17'
94+
- name: 'Set up latest Oracle JDK 21'
9595
uses: oracle-actions/setup-java@v1
9696
with:
9797
website: oracle.com
98-
release: 17
98+
release: 21
9999
```
100100
101101
### Download and install a specific version of Oracle JDK
@@ -151,7 +151,7 @@ These include the following labels: `ubuntu-latest`, `macos-latest`, and `window
151151

152152
## More information
153153

154-
Make sure to check [the annoucement and the FAQ](https://inside.java/2022/03/11/setup-java/) on Inside Java.
154+
Make sure to check [the announcement and the FAQ](https://inside.java/2022/03/11/setup-java/) on Inside Java.
155155

156156
## Status
157157

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ inputs:
1111
required: true
1212
default: 'oracle.com'
1313
release:
14-
description: 'Feature release number or project name, defaults to `20`'
14+
description: 'Feature release number or project name, defaults to `21`'
1515
required: true
16-
default: '20'
16+
default: '21'
1717
version:
1818
description: 'Additional version information, defaults to `latest`'
1919
required: true

src/ListOpenJavaDevelopmentKits.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
class ListOpenJavaDevelopmentKits {
4040

4141
/** Current General-Availability release number. */
42-
static final String GA = System.getProperty("GA", "20");
42+
static final String GA = System.getProperty("GA", "21");
4343

4444
/** Current Soon-Archived release number. */
45-
static final String SA = System.getProperty("SA", "19");
45+
static final String SA = System.getProperty("SA", "20");
4646

4747
/** Early-Access Releases, as comma separated names. */
48-
static final String EA = System.getProperty("EA", "22,21,jextract,panama,valhalla");
48+
static final String EA = System.getProperty("EA", "22,jextract,valhalla");
4949

5050
/** Include archived releases flag. */
5151
static final boolean ARCHIVES = Boolean.getBoolean("ARCHIVES");

test/Test.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ public static void main(String[] args) {
2929
static void checkAllOracleJDKs() {
3030
System.out.println();
3131
System.out.println("// oracle.com - latest");
32-
checkOracleJDK("20", "latest");
32+
checkOracleJDK("21", "latest");
3333
checkOracleJDK("17", "latest");
3434

3535
System.out.println();
3636
System.out.println("// oracle.com - archive");
37-
Stream.of("19", "19.0.2", "19.0.2").forEach(version -> checkOracleJDK("19", version));
37+
Stream.of("20", "20.0.1", "20.0.2").forEach(version -> checkOracleJDK("20", version));
38+
Stream.of("19", "19.0.1", "19.0.2").forEach(version -> checkOracleJDK("19", version));
3839
Stream.of("18", "18.0.1", "18.0.1.1").forEach(version -> checkOracleJDK("18", version));
3940
Stream.of("17", "17.0.1", "17.0.2").forEach(version -> checkOracleJDK("17", version));
4041
}

0 commit comments

Comments
 (0)