Skip to content

Commit

Permalink
Update JNI headers for Java 19
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Sep 23, 2022
1 parent 735e89a commit 35f090e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bzlmod/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions jni/internal/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 35f090e

Please sign in to comment.