aboutsummaryrefslogtreecommitdiff
path: root/java_src/tink_java_deps.bzl
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2020-04-15 02:03:50 -0700
committerCopybara-Service <copybara-worker@google.com>2020-04-15 02:04:17 -0700
commitc65dab4590ed5832f99e99d28fe83fc0af0df31b (patch)
tree45c0e50c556b8c8fa8d5080e3cd20abf93cf8d61 /java_src/tink_java_deps.bzl
parent80538857dfde9f5019487b137967b92965ffc079 (diff)
downloadtink-c65dab4590ed5832f99e99d28fe83fc0af0df31b.tar.gz
Migrate java to java_src to adhere to google internal tooling.
PiperOrigin-RevId: 306603258
Diffstat (limited to 'java_src/tink_java_deps.bzl')
-rw-r--r--java_src/tink_java_deps.bzl48
1 files changed, 48 insertions, 0 deletions
diff --git a/java_src/tink_java_deps.bzl b/java_src/tink_java_deps.bzl
new file mode 100644
index 000000000..cad15bfdf
--- /dev/null
+++ b/java_src/tink_java_deps.bzl
@@ -0,0 +1,48 @@
+"""
+Dependencies of Java Tink.
+"""
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+def tink_java_deps():
+ """ Loads dependencies of Java Tink.
+
+ """
+ if not native.existing_rule("rules_jvm_external"):
+ # Release from 2019-08-14
+ http_archive(
+ name = "rules_jvm_external",
+ strip_prefix = "rules_jvm_external-2.7",
+ sha256 = "f04b1466a00a2845106801e0c5cec96841f49ea4e7d1df88dc8e4bf31523df74",
+ url = "https://github.com/bazelbuild/rules_jvm_external/archive/2.7.zip",
+ )
+
+ if not native.existing_rule("build_bazel_rules_android"):
+ # Last release from 2018-08-07.
+ http_archive(
+ name = "build_bazel_rules_android",
+ urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
+ sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
+ strip_prefix = "rules_android-0.1.1",
+ )
+
+ if not native.existing_rule("com_google_protobuf_javalite"):
+ # java_lite_proto_library rules implicitly depend on
+ # @com_google_protobuf_javalite//:javalite_toolchain, which is the JavaLite proto
+ # runtime (base classes and common utilities).
+ # Commit from 2019-12-03 on the 3.11.x branch.
+ http_archive(
+ name = "com_google_protobuf_javalite",
+ strip_prefix = "protobuf-0425fa932ce95a32bb9f88b2c09b995e9ff8207b",
+ urls = ["https://github.com/google/protobuf/archive/0425fa932ce95a32bb9f88b2c09b995e9ff8207b.zip"],
+ sha256 = "e60211a40473f6be95b53f64559f82a3b2971672b11710db2fc9081708e25699",
+ )
+
+ if not native.existing_rule("rules_python"):
+ # Needed by @com_google_protobuf_javalite.
+ http_archive(
+ name = "rules_python",
+ sha256 = "e5470e92a18aa51830db99a4d9c492cc613761d5bdb7131c04bd92b9834380f6",
+ strip_prefix = "rules_python-4b84ad270387a7c439ebdccfd530e2339601ef27",
+ urls = ["https://github.com/bazelbuild/rules_python/archive/4b84ad270387a7c439ebdccfd530e2339601ef27.tar.gz"],
+ )