2018-06-04 15:53:16 +00:00
|
|
|
workspace(name = "org_brotli_java")
|
|
|
|
|
|
|
|
local_repository(
|
|
|
|
name = "org_brotli",
|
|
|
|
path = "..",
|
|
|
|
)
|
|
|
|
|
2020-03-31 12:38:01 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
|
|
|
|
|
2024-11-11 14:03:12 +00:00
|
|
|
RULES_JAVA_VERSION = "8.3.2"
|
|
|
|
RULES_JAVA_SHA = "9b9614f8a7f7b7ed93cb7975d227ece30fe7daed2c0a76f03a5ee37f69e437de"
|
2021-03-24 14:05:23 +00:00
|
|
|
RULES_JVM_EXTERNAL_TAG = "4.0"
|
|
|
|
RULES_JVM_EXTERNAL_SHA = "31701ad93dbfe544d597dbe62c9a1fdd76d81d8a9150c2bf1ecf928ecdf97169"
|
2024-02-21 10:32:23 +00:00
|
|
|
RULES_KOTLIN_VERSION = "1.9.0"
|
|
|
|
RULES_KOTLIN_SHA = "5766f1e599acf551aa56f49dab9ab9108269b03c557496c54acaf41f98e2b8d6"
|
2020-03-31 12:38:01 +00:00
|
|
|
|
2024-11-11 14:03:12 +00:00
|
|
|
http_archive(
|
|
|
|
name = "rules_java",
|
|
|
|
sha256 = RULES_JAVA_SHA,
|
|
|
|
urls = [
|
|
|
|
"https://github.com/bazelbuild/rules_java/releases/download/%s/rules_java-%s.tar.gz" % (RULES_JAVA_VERSION, RULES_JAVA_VERSION),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains")
|
|
|
|
rules_java_dependencies()
|
|
|
|
rules_java_toolchains()
|
|
|
|
|
2020-03-31 12:38:01 +00:00
|
|
|
http_archive(
|
|
|
|
name = "rules_jvm_external",
|
|
|
|
sha256 = RULES_JVM_EXTERNAL_SHA,
|
2024-11-11 14:03:12 +00:00
|
|
|
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
|
2020-03-31 12:38:01 +00:00
|
|
|
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
|
2018-06-04 15:53:16 +00:00
|
|
|
)
|
|
|
|
|
2020-03-31 12:38:01 +00:00
|
|
|
load("@rules_jvm_external//:defs.bzl", "maven_install")
|
|
|
|
|
2024-02-21 10:32:23 +00:00
|
|
|
http_archive(
|
|
|
|
name = "rules_kotlin",
|
|
|
|
sha256 = RULES_KOTLIN_SHA,
|
2024-11-11 14:03:12 +00:00
|
|
|
urls = ["https://github.com/bazelbuild/rules_kotlin/releases/download/v%s/rules_kotlin-v%s.tar.gz" % (RULES_KOTLIN_VERSION, RULES_KOTLIN_VERSION)],
|
2024-02-21 10:32:23 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
load("@rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
|
|
|
|
|
2024-11-11 14:03:12 +00:00
|
|
|
kotlin_repositories() # if you want the default. Otherwise see custom kotlinc distribution below
|
2024-02-21 10:32:23 +00:00
|
|
|
load("@rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
|
2024-11-11 14:03:12 +00:00
|
|
|
kt_register_toolchains() # to use the default toolchain, otherwise see toolchains below
|
2024-02-21 10:32:23 +00:00
|
|
|
|
2020-03-31 12:38:01 +00:00
|
|
|
maven_install(
|
|
|
|
artifacts = ["junit:junit:4.12"],
|
2021-03-24 14:05:23 +00:00
|
|
|
repositories = [
|
|
|
|
"https://maven.google.com",
|
|
|
|
"https://repo1.maven.org/maven2",
|
|
|
|
],
|
2020-03-31 12:38:01 +00:00
|
|
|
)
|
2018-06-04 15:53:16 +00:00
|
|
|
|
2024-01-16 11:36:27 +00:00
|
|
|
http_archive(
|
|
|
|
name = "platforms",
|
2024-11-11 14:03:12 +00:00
|
|
|
sha256 = "8150406605389ececb6da07cbcb509d5637a3ab9a24bc69b1101531367d89d74",
|
2024-01-16 11:36:27 +00:00
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-10-18 15:25:05 +00:00
|
|
|
http_file(
|
|
|
|
name = "openjdk_jni_h",
|
|
|
|
downloaded_file_path = "jni.h",
|
|
|
|
sha256 = "ed99792df48670072b78028faf704a8dcb6868fe140ccc7eced9b01dfa62fef4",
|
2024-11-11 14:03:12 +00:00
|
|
|
urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/share/javavm/export/jni.h"],
|
2018-06-04 15:53:16 +00:00
|
|
|
)
|
2018-10-18 15:25:05 +00:00
|
|
|
|
|
|
|
http_file(
|
|
|
|
name = "openjdk_solaris_jni_md_h",
|
|
|
|
downloaded_file_path = "jni_md.h",
|
2024-01-04 11:32:33 +00:00
|
|
|
sha256 = "b6cf7b06e5bba38d2daa2ff0789f99d396b3cb3bcc37d0367c8360fdccdef294",
|
2024-11-11 14:03:12 +00:00
|
|
|
urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/solaris/javavm/export/jni_md.h"],
|
2018-06-04 15:53:16 +00:00
|
|
|
)
|
|
|
|
|
2018-10-18 15:25:05 +00:00
|
|
|
http_file(
|
|
|
|
name = "openjdk_macosx_jni_md_h",
|
|
|
|
downloaded_file_path = "jni_md.h",
|
|
|
|
sha256 = "8f718071022e7e7f2fc9a229984b7e83582db91ed83861b49ce1461436fe8dc4",
|
2024-11-11 14:03:12 +00:00
|
|
|
urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/macosx/javavm/export/jni_md.h"],
|
2018-06-04 15:53:16 +00:00
|
|
|
)
|
2018-10-18 15:25:05 +00:00
|
|
|
|
|
|
|
http_file(
|
|
|
|
name = "openjdk_windows_jni_md_h",
|
|
|
|
downloaded_file_path = "jni_md.h",
|
|
|
|
sha256 = "5479fb385ea1e11619f5c0cdfd9ccb3ea3a3fea0f5bc6176fb3ce62be29d759b",
|
2024-11-11 14:03:12 +00:00
|
|
|
urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/windows/javavm/export/jni_md.h"],
|
2018-06-04 15:53:16 +00:00
|
|
|
)
|