xref: /aosp_15_r20/external/setfilters/WORKSPACE (revision f53908e1379d754ac0a89dcba1e5f85b29df130f)
1# Copyright 2022 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#    https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
16
17RULES_JVM_EXTERNAL_TAG = "4.2"
18
19RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca"
20
21http_archive(
22    name = "rules_jvm_external",
23    sha256 = RULES_JVM_EXTERNAL_SHA,
24    strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
25    url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
26)
27
28load("@rules_jvm_external//:defs.bzl", "maven_install")
29
30GUAVA_VERSION = "27.1"
31
32ERROR_PRONE_VERSION = "2.14.0"
33
34maven_install(
35    artifacts = [
36        "com.google.errorprone:error_prone_annotation:%s" % ERROR_PRONE_VERSION,
37        "com.google.guava:guava:%s-jre" % GUAVA_VERSION,
38        "com.google.truth:truth:1.1",
39        "com.google.truth.extensions:truth-java8-extension:1.1.3",
40        "junit:junit:4.13",
41        "org.mockito:mockito-core:2.28.2",
42    ],
43    repositories = [
44        "https://repo1.maven.org/maven2",
45        "https://maven.google.com",
46    ],
47)
48