Bug 1785174 - Bump JDK to 18.0.2+9. r=geckoview-reviewers,calu

Differential Revision: https://phabricator.services.mozilla.com/D154858
This commit is contained in:
Ryan VanderMeulen 2022-08-17 15:20:24 +00:00
parent f4b6916589
commit e2fec65aa0
3 changed files with 8 additions and 8 deletions

View File

@ -42,9 +42,9 @@ AVD_MANIFEST_X86_64 = Path(__file__).resolve().parent / "android-avds/x86_64.jso
AVD_MANIFEST_ARM = Path(__file__).resolve().parent / "android-avds/arm.json"
AVD_MANIFEST_ARM64 = Path(__file__).resolve().parent / "android-avds/arm64.json"
JAVA_VERSION_MAJOR = "17"
JAVA_VERSION_MINOR = "0.1"
JAVA_VERSION_PATCH = "12"
JAVA_VERSION_MAJOR = "18"
JAVA_VERSION_MINOR = "0.2"
JAVA_VERSION_PATCH = "9"
ANDROID_NDK_EXISTS = """
Looks like you have the correct version of the Android NDK installed at:
@ -836,8 +836,8 @@ def ensure_java(os_name, os_arch):
raise NotImplementedError(f"Could not bootstrap java for {os_name}.")
if not java_path.exists():
# e.g. https://github.com/adoptium/temurin17-binaries/releases/
# download/jdk-17.0.1%2B12/OpenJDK17U-jdk_x64_linux_hotspot_17.0.1_12.tar.gz
# e.g. https://github.com/adoptium/temurin18-binaries/releases/
# download/jdk-18.0.2+9/OpenJDK18U-jdk_x64_linux_hotspot_18.0.2_9.tar.gz
java_url = (
"https://github.com/adoptium/temurin{major}-binaries/releases/"
"download/jdk-{major}.{minor}%2B{patch}/"
@ -855,7 +855,7 @@ def ensure_java(os_name, os_arch):
def java_bin_path(os_name, toolchain_path: Path):
# Like jdk-17.0.1+12
# Like jdk-18.0.2+9
jdk_folder = "jdk-{major}.{minor}+{patch}".format(
major=JAVA_VERSION_MAJOR, minor=JAVA_VERSION_MINOR, patch=JAVA_VERSION_PATCH
)

View File

@ -596,7 +596,7 @@ class TestChecksConfigure(unittest.TestCase):
javac = mozpath.abspath("/usr/bin/javac")
paths = {java: None, javac: None}
expected_error_message = (
"ERROR: Could not locate Java at /mozbuild/jdk/jdk-17.0.1+12/bin, "
"ERROR: Could not locate Java at /mozbuild/jdk/jdk-18.0.2+9/bin, "
"please run ./mach bootstrap --no-system-changes\n"
)

View File

@ -111,7 +111,7 @@ linux64-jdk-repack:
toolchain-artifact: project/gecko/jdk/jdk-linux.tar.zst
toolchain-alias: linux64-jdk
toolchain-env:
JAVA_HOME: "/builds/worker/fetches/jdk/jdk-17.0.1+12"
JAVA_HOME: "/builds/worker/fetches/jdk/jdk-18.0.2+9"
linux64-android-sdk-linux-repack:
description: "Android SDK (Linux) repack toolchain build"