Skip to content

Commit

Permalink
Upgrade default JDKs to 21.0.1, 17.0.9, 11.0.21 and 8u392
Browse files Browse the repository at this point in the history
  • Loading branch information
Malax committed Oct 19, 2023
1 parent 02e976f commit a2f6c0f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions buildpacks/jvm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

* Default version for **OpenJDK 8** is now `1.8.0_392`. ([#000](https://github.com/heroku/buildpacks-jvm/pull/000))
* Default version for **OpenJDK 11** is now `11.0.21`. ([#000](https://github.com/heroku/buildpacks-jvm/pull/000))
* Default version for **OpenJDK 17** is now `17.0.9`. ([#000](https://github.com/heroku/buildpacks-jvm/pull/000))
* Default version for **OpenJDK 21** is now `21.0.1`. ([#000](https://github.com/heroku/buildpacks-jvm/pull/000))

## [3.2.0] - 2023-09-20

### Added
Expand Down
8 changes: 4 additions & 4 deletions buildpacks/jvm/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ pub(crate) fn normalize_version_string<S: Into<String>>(

let version_string = match user_version_string {
"7" | "1.7" => "1.7.0_352",
"8" | "1.8" => "1.8.0_382",
"8" | "1.8" => "1.8.0_392",
"9" | "1.9" => "9.0.4",
"10" => "10.0.2",
"11" => "11.0.20.1",
"11" => "11.0.21",
"12" => "12.0.2",
"13" => "13.0.14",
"14" => "14.0.2",
"15" => "15.0.10",
"16" => "16.0.2",
"17" => "17.0.8.1",
"17" => "17.0.9",
"18" => "18.0.2.1",
"19" => "19.0.2",
"20" => "20.0.2",
"21" => "21.0.0",
"21" => "21.0.1",
other => other,
};

Expand Down
4 changes: 2 additions & 2 deletions buildpacks/jvm/tests/integration/versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn test_openjdk_8_distribution_heroku_20() {
|context| {
assert_contains!(
context.run_shell_command("java -version").stderr,
"openjdk version \"1.8.0_382-heroku\""
"openjdk version \"1.8.0_392-heroku\""
);
},
)
Expand All @@ -22,7 +22,7 @@ fn test_openjdk_8_distribution_heroku_22() {
|context| {
assert_contains!(
context.run_shell_command("java -version").stderr,
"openjdk version \"1.8.0_382\""
"openjdk version \"1.8.0_392\""
);
},
)
Expand Down

0 comments on commit a2f6c0f

Please sign in to comment.