Skip to content

Commit 2e744f7

Browse files
authored
Java 23 / JDK 23: General Availability
1 parent 59e2dc9 commit 2e744f7

File tree

5 files changed

+29
-22
lines changed

5 files changed

+29
-22
lines changed

CHANGELOG.md

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

77

88
## [Unreleased]
9+
_nothing noteworthy yet_
10+
11+
## [1.4.0] - 2024-03-21
912
### Added
1013
- Java `24` and project `leyden` to the list of Early-Access releases
1114
- New `version: stable` mode for `release: ea` setups
1215
- Retry of failed JDK archive downloads
16+
### Changed
17+
- Default value of `release` input to Java `23`
1318

1419
## [1.3.4] - 2024-03-21
1520
### Fixed
@@ -66,7 +71,8 @@ This project uses tags and branches for [release management](https://docs.github
6671
### Added
6772
- Initial Release
6873

69-
[Unreleased]: https://github.com/oracle-actions/setup-java/compare/v1.3.4...HEAD
74+
[Unreleased]: https://github.com/oracle-actions/setup-java/compare/v1.4.0...HEAD
75+
[1.4.0]: https://github.com/oracle-actions/setup-java/compare/v1.3.4...v1.4.0
7076
[1.3.4]: https://github.com/oracle-actions/setup-java/compare/v1.3.3...v1.3.4
7177
[1.3.3]: https://github.com/oracle-actions/setup-java/compare/v1.3.2...v1.3.3
7278
[1.3.2]: https://github.com/oracle-actions/setup-java/compare/v1.3.1...v1.3.2

README.md

Lines changed: 13 additions & 13 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` | `22` | Java feature release number or name of an Early-Access project. |
12+
| `release` | `23` | 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` |
@@ -22,7 +22,7 @@ It defaults to `oracle.com`.
2222

2323
Following values are supported:
2424

25-
- [`oracle.com`](https://www.oracle.com/java/technologies/downloads/) for Oracle JDK 17 and later.
25+
- [`oracle.com`](https://www.oracle.com/java/technologies/downloads/) for Oracle JDK 21 and later.
2626

2727
This action only supports Oracle JDKs provided under the [Oracle No-Fee Terms and Conditions License](https://www.java.com/freeuselicense/).
2828

@@ -34,18 +34,18 @@ Following values are supported:
3434

3535
### Input `release`
3636

37-
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 `22` as of today.
37+
The `release` input denotes a Java feature release number (`21`, `22`, ...) 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 `23` as of today.
3939

4040
Note that websites may offer a different set of available releases.
41-
For example, `oracle.com` only offers releases of `17` and above; it does not offer any Early-Access releases.
41+
For example, `oracle.com` only offers releases of `21` and above; it does not offer any Early-Access releases.
4242

4343
Note also that websites may stop offering any release at any time.
4444
Please consult the website for details which release is offered for how long.
4545

4646
### Input `version`
4747

48-
The `version` input can be used to specify an explicit version of a Java release, ex. `17.0.1`.
48+
The `version` input can be used to specify an explicit version of a Java release, ex. `21.0.4`.
4949
It is set by default to `latest`.
5050

5151
___
@@ -69,7 +69,7 @@ Pass `false` to skip the automatic JDK installation and invoke `actions/setup-ja
6969
The `install-as-version` input allows overriding the value passed as `java-version` to the underlying `actions/setup-java` action.
7070

7171
Supported values of `install-as-version` include:
72-
- `PARSE_URI` parses the computed or given URI for a valid Java version string, ex. `17.0.1`.
72+
- `PARSE_URI` parses the computed or given URI for a valid Java version string, ex. `21.0.4`.
7373
- `HASH_URI` returns the `hashCode()` of the computed or given URI as a string, ex. `12345`.
7474
- All strings [supported by `actions/setup-java`](https://github.com/actions/setup-java#supported-version-syntax)
7575

@@ -90,23 +90,23 @@ The following examples use the [JDK Script Friendly URLs](https://www.oracle.com
9090

9191
```yaml
9292
steps:
93-
- name: 'Set up latest Oracle JDK 22'
93+
- name: 'Set up latest Oracle JDK 23'
9494
uses: oracle-actions/setup-java@v1
9595
with:
9696
website: oracle.com
97-
release: 22
97+
release: 23
9898
```
9999
100100
### Download and install a specific version of Oracle JDK
101101
102102
```yaml
103103
steps:
104-
- name: 'Set up archived Oracle JDK 17.0.10'
104+
- name: 'Set up archived Oracle JDK 21.0.4'
105105
uses: oracle-actions/setup-java@v1
106106
with:
107107
website: oracle.com
108-
release: 17
109-
version: 17.0.10
108+
release: 21
109+
version: 21.0.4
110110
```
111111
___
112112
@@ -128,7 +128,7 @@ steps:
128128
uses: oracle-actions/setup-java@v1
129129
with:
130130
website: jdk.java.net
131-
release: N # Replace N with GA, EA, 17, 18, 19, ...
131+
release: N # Replace N with GA, EA, 21, 22, 23, ...
132132
```
133133

134134
> [!NOTE]

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 `22`'
14+
description: 'Feature release number or project name, defaults to `23`'
1515
required: true
16-
default: '22'
16+
default: '23'
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
@@ -40,19 +40,19 @@
4040
class ListOpenJavaDevelopmentKits {
4141

4242
/** Current General-Availability release number. */
43-
static final String GA = System.getProperty("GA", "22");
43+
static final String GA = System.getProperty("GA", "23");
4444

4545
/** Current Soon-Archived release number. */
4646
static final String SA = System.getProperty("SA");
4747

4848
/** Early-Access Releases, as comma separated names. */
49-
static final String EA = System.getProperty("EA", "24,23,jextract,leyden,loom,valhalla");
49+
static final String EA = System.getProperty("EA", "24,jextract,leyden,loom,valhalla");
5050

5151
/** Current "latest" Early-Access Release number. */
5252
static final String EA_LATEST = System.getProperty("EA_LATEST", "24");
5353

5454
/** Current "stable" Early-Access Release number. */
55-
static final String EA_STABLE = System.getProperty("EA_STABLE", "23");
55+
static final String EA_STABLE = System.getProperty("EA_STABLE", "24");
5656

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

test/Test.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ static void checkAllOracleJDKs() {
3535

3636
System.out.println();
3737
System.out.println("// oracle.com - archive");
38-
Stream.of("22").forEach(version -> checkOracleJDK("22", version));
39-
Stream.of("21", "21.0.1", "21.0.2").forEach(version -> checkOracleJDK("21", version));
38+
Stream.of("23").forEach(version -> checkOracleJDK("23", version));
39+
Stream.of("22", "22.0.1", "22.0.2").forEach(version -> checkOracleJDK("22", version));
40+
Stream.of("21", "21.0.1", "21.0.2", "21.0.4").forEach(version -> checkOracleJDK("21", version));
4041
Stream.of("20", "20.0.1", "20.0.2").forEach(version -> checkOracleJDK("20", version));
4142
Stream.of("19", "19.0.1", "19.0.2").forEach(version -> checkOracleJDK("19", version));
4243
Stream.of("18", "18.0.1", "18.0.1.1").forEach(version -> checkOracleJDK("18", version));
43-
Stream.of("17", "17.0.1", "17.0.2").forEach(version -> checkOracleJDK("17", version));
44+
Stream.of("17", "17.0.1", "17.0.2", "17.0.12").forEach(version -> checkOracleJDK("17", version));
4445
}
4546

4647
static void checkAllJavaNetJDKs() {

0 commit comments

Comments
 (0)