Skip to content

Commit

Permalink
Bump JDK
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Sep 12, 2023
1 parent b68b67f commit 9446ddd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ant/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ java.download=https://bell-sw.com/pages/downloads/#/java-11-lts
# Java vendor to bundle into software (e.g. "*BellSoft|Adoptium|Microsoft|Amazon|IBM")
jlink.java.vendor="BellSoft"
# Java vendor to bundle into software (e.g. "11.0.17+7")
jlink.java.version="11.0.20+8"
jlink.java.version="11.0.20.1+1"
# Java garbage collector flavor to use (e.g. "hotspot|openj9")
jlink.java.gc="hotspot"
# Java garbage collector version to use (e.g. openj9: "0.35.0", zulu: "11.62.17")
Expand Down
2 changes: 1 addition & 1 deletion src/qz/build/JLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private static boolean needsDownload(Version want, Version installed) {
* Download the JDK and return the path it was extracted to
*/
private String downloadJdk(Arch arch, Platform platform) throws IOException {
String url = new Url(this.javaVendor).format(arch, platform, this.gcEngine, this.javaSemver, this.gcVersion);
String url = new Url(this.javaVendor).format(arch, platform, this.gcEngine, this.javaSemver, this.javaVersion, this.gcVersion);

// Saves to out e.g. "out/jlink/jdk-AdoptOpenjdk-amd64-platform-11_0_7"
String extractedJdk = new Fetcher(String.format("jlink/jdk-%s-%s-%s-%s", javaVendor.value(), arch.value(), platform.value(), javaSemver.toString().replaceAll("\\+", "_")), url)
Expand Down
4 changes: 2 additions & 2 deletions src/qz/build/jlink/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ public Url(Vendor vendor) {
pattern = VENDOR_URL_MAP.get(vendor);
}

public String format(Arch arch, Platform platform, String gcEngine, Version javaSemver, String gcVer) throws UnsupportedEncodingException {
public String format(Arch arch, Platform platform, String gcEngine, Version javaSemver, String javaVersion, String gcVer) throws UnsupportedEncodingException {
Url pattern = new Url(vendor);
String urlArch = vendor.getUrlArch(arch);
String fileExt = vendor.getUrlExtension(platform);
String urlPlatform = vendor.getUrlPlatform(platform);
String urlJavaVersion = vendor.getUrlJavaVersion(javaSemver);

// Convert "+" to "%2B"
String urlJavaVersionEncode = URLEncoder.encode(javaSemver.toString(), "UTF-8");
String urlJavaVersionEncode = URLEncoder.encode(javaVersion, "UTF-8");

int javaMajor = javaSemver.getMajorVersion();
switch(vendor) {
Expand Down

0 comments on commit 9446ddd

Please sign in to comment.