From 35f090eeebeffa965ce04b0c9b0b5e9cc7b6a395 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Fri, 23 Sep 2022 08:15:00 +0200 Subject: [PATCH] Update JNI headers for Java 19 --- bzlmod/extensions.bzl | 8 ++++---- jni/internal/repositories.bzl | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bzlmod/extensions.bzl b/bzlmod/extensions.bzl index c0b45d9..a01fbad 100644 --- a/bzlmod/extensions.bzl +++ b/bzlmod/extensions.bzl @@ -18,20 +18,20 @@ def _download_jni_headers(ctx): http_file( name = "com_github_openjdk_jdk_jni_h", downloaded_file_path = "jni.h", - sha256 = "1266aea5b9f5d5db1cb6f8e5c6c43cfa7f80bc4f72d7fe42c6131bb939dc70f4", - urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/share/native/include/jni.h"], + sha256 = "91f19e0a31a518631ba1ba201238a3af07af754fe541ff1f2a6b62d6358914e7", + urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-19%2B36/src/java.base/share/native/include/jni.h"], ) http_file( name = "com_github_openjdk_jdk_unix_jni_md_h", downloaded_file_path = "jni_md.h", sha256 = "88cb5c33e306900dd35a78d5a439087123b8e91b0986bb5acb42cc9bd2fcc42e", - urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/unix/native/include/jni_md.h"], + urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-19%2B36/src/java.base/unix/native/include/jni_md.h"], ) http_file( name = "com_github_openjdk_jdk_windows_jni_md_h", downloaded_file_path = "jni_md.h", sha256 = "dbf96659c4c840b15ef40237db0c65657eca7a70904225fc984deb38999df515", - urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/windows/native/include/jni_md.h"], + urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-19%2B36/src/java.base/windows/native/include/jni_md.h"], ) download_jni_headers = module_extension( diff --git a/jni/internal/repositories.bzl b/jni/internal/repositories.bzl index 046edf3..514fac1 100644 --- a/jni/internal/repositories.bzl +++ b/jni/internal/repositories.bzl @@ -40,22 +40,22 @@ Currently, rules_jni depends on: http_file, name = "com_github_openjdk_jdk_jni_h", downloaded_file_path = "jni.h", - sha256 = "1266aea5b9f5d5db1cb6f8e5c6c43cfa7f80bc4f72d7fe42c6131bb939dc70f4", - urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/share/native/include/jni.h"], + sha256 = "91f19e0a31a518631ba1ba201238a3af07af754fe541ff1f2a6b62d6358914e7", + urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-19%2B36/src/java.base/share/native/include/jni.h"], ) maybe( http_file, name = "com_github_openjdk_jdk_unix_jni_md_h", downloaded_file_path = "jni_md.h", sha256 = "88cb5c33e306900dd35a78d5a439087123b8e91b0986bb5acb42cc9bd2fcc42e", - urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/unix/native/include/jni_md.h"], + urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-19%2B36/src/java.base/unix/native/include/jni_md.h"], ) maybe( http_file, name = "com_github_openjdk_jdk_windows_jni_md_h", downloaded_file_path = "jni_md.h", sha256 = "dbf96659c4c840b15ef40237db0c65657eca7a70904225fc984deb38999df515", - urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/windows/native/include/jni_md.h"], + urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk-19%2B36/src/java.base/windows/native/include/jni_md.h"], ) maybe( http_archive,