Skip to content

Commit

Permalink
Update Temurin JDK 21-ea to first RC
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Aug 28, 2023
1 parent 15c5b74 commit c4844f7
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
import io.trino.testing.containers.TestContainers;
import io.trino.tests.product.launcher.env.EnvironmentOptions;

public class Temurin21EaJdkProvider
public class Temurin21RcJdkProvider
extends TarDownloadingJdkProvider
{
private static final String VERSION = "21-29-ea-beta";
// build 35 is considered the first release candidate per https://mail.openjdk.org/pipermail/jdk-dev/2023-August/008059.html
private static final String VERSION = "21-35-ea-beta";

@Inject
public Temurin21EaJdkProvider(EnvironmentOptions environmentOptions)
public Temurin21RcJdkProvider(EnvironmentOptions environmentOptions)
{
super(environmentOptions);
}
Expand All @@ -32,8 +33,8 @@ public Temurin21EaJdkProvider(EnvironmentOptions environmentOptions)
protected String getDownloadUri(TestContainers.DockerArchitecture architecture)
{
return switch (architecture) {
case AMD64 -> "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-%s/OpenJDK21U-jdk_x64_linux_hotspot_ea_21-0-29.tar.gz".formatted(VERSION.replaceFirst("-", "%2B"));
case ARM64 -> "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-%s/OpenJDK21U-jdk_aarch64_linux_hotspot_ea_21-0-29.tar.gz".formatted(VERSION.replaceFirst("-", "%2B"));
case AMD64 -> "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-%s/OpenJDK21U-jdk_x64_linux_hotspot_ea_21-0-35.tar.gz".formatted(VERSION.replaceFirst("-", "%2B"));
case ARM64 -> "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-%s/OpenJDK21U-jdk_aarch64_linux_hotspot_ea_21-0-35.tar.gz".formatted(VERSION.replaceFirst("-", "%2B"));
default -> throw new IllegalArgumentException("Architecture %s is not supported for Temurin 21-ea-beta distribution".formatted(architecture));
};
}
Expand Down

0 comments on commit c4844f7

Please sign in to comment.