"""Dependencies for Tink Java.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") TINK_MAVEN_ARTIFACTS = [ "com.google.protobuf:protobuf-java:4.28.2", "com.google.protobuf:protobuf-javalite:4.28.2", "androidx.annotation:annotation:1.8.2", "androidx.test:monitor:1.7.2", "com.google.api-client:google-api-client:2.2.0", "com.google.code.findbugs:jsr305:3.0.2", "com.google.code.gson:gson:2.10.1", "com.google.errorprone:error_prone_annotations:2.22.0", "com.google.http-client:google-http-client:1.43.3", "com.google.truth:truth:0.44", "junit:junit:4.13.2", "org.conscrypt:conscrypt-openjdk-uber:2.5.2", "org.ow2.asm:asm:7.0", "org.ow2.asm:asm-commons:7.0", "org.pantsbuild:jarjar:1.7.2", ] def tink_java_deps(): """Loads dependencies of Java Tink.""" # Basic rules we need to add to bazel. # Release from 2023-05-31. maybe( http_archive, name = "bazel_skylib", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz", ], sha256 = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa", ) # ------------------------------------------------------------------------- # Protobuf. # ------------------------------------------------------------------------- # Release from 2024-09-18. maybe( http_archive, name = "com_google_protobuf", strip_prefix = "protobuf-28.2", urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v28.2/protobuf-28.2.tar.gz"], sha256 = "b2340aa47faf7ef10a0328190319d3f3bee1b24f426d4ce8f4253b6f27ce16db", ) # ------------------------------------------------------------------------- # Transitive Maven artifact resolution and publishing rules for Bazel. # ------------------------------------------------------------------------- # Release from 2023-06-23 maybe( http_archive, name = "rules_jvm_external", strip_prefix = "rules_jvm_external-5.3", url = "https://github.com/bazelbuild/rules_jvm_external/archive/5.3.zip", sha256 = "6cc8444b20307113a62b676846c29ff018402fd4c7097fcd6d0a0fd5f2e86429", ) # ------------------------------------------------------------------------- # Android rules for Bazel. # ------------------------------------------------------------------------- # Last release from 2018-08-07. maybe( http_archive, name = "build_bazel_rules_android", urls = ["https://github.com/bazelbuild/rules_android/archive/refs/tags/v0.1.1.zip"], sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", strip_prefix = "rules_android-0.1.1", ) # ------------------------------------------------------------------------- # Wycheproof. # ------------------------------------------------------------------------- # Commit from 2019-12-17 maybe( http_archive, name = "wycheproof", strip_prefix = "wycheproof-d8ed1ba95ac4c551db67f410c06131c3bc00a97c", url = "https://github.com/google/wycheproof/archive/d8ed1ba95ac4c551db67f410c06131c3bc00a97c.zip", sha256 = "eb1d558071acf1aa6d677d7f1cabec2328d1cf8381496c17185bd92b52ce7545", ) # ------------------------------------------------------------------------- # Rules Python. # ------------------------------------------------------------------------- # Required by protobuf. # Release from 2023-08-22. maybe( http_archive, name = "rules_python", sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036", strip_prefix = "rules_python-0.25.0", url = "https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz", )