forked from google/copybara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
repositories.maven.bzl
70 lines (66 loc) · 3.91 KB
/
repositories.maven.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@rules_jvm_external//:defs.bzl", "DEFAULT_REPOSITORY_NAME", "maven_install")
load("@rules_jvm_external//:specs.bzl", "maven")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
COPYBARA_MAVEN_ARTIFACTS = [
maven.artifact("com.github.stephenc.jcip", "jcip-annotations", "1.0-1"),
maven.artifact("com.google.auto.service", "auto-service", "1.0"),
maven.artifact("com.google.auto.service", "auto-service-annotations", "1.0.1"),
maven.artifact("com.google.auto.value", "auto-value-annotations", "1.9"),
maven.artifact("com.google.auto.value", "auto-value", "1.9"),
maven.artifact("com.google.auto", "auto-common", "1.2.1"),
maven.artifact("com.google.code.findbugs", "jsr305", "3.0.2", neverlink = False),
maven.artifact("com.google.code.gson", "gson", "2.8.5"),
maven.artifact("com.google.errorprone", "error_prone_type_annotations", "2.16"),
maven.artifact("com.google.flogger", "flogger-system-backend", "0.7.4"),
maven.artifact("com.google.flogger", "flogger", "0.7.4"),
maven.artifact("com.google.flogger", "google-extensions", "0.5.1"),
maven.artifact("com.google.guava", "failureaccess", "1.0.1"),
maven.artifact("com.google.guava", "guava-testlib", "31.1-jre", testonly = True),
maven.artifact("com.google.guava", "guava", "31.1-jre"),
maven.artifact("com.google.http-client", "google-http-client-gson", "1.27.0"),
maven.artifact("com.google.http-client", "google-http-client-test", "1.27.0", testonly = True),
maven.artifact("com.google.http-client", "google-http-client", "1.27.0"),
maven.artifact("com.google.jimfs", "jimfs", "1.2"),
maven.artifact("com.google.re2j", "re2j", "1.6"),
maven.artifact("com.google.testparameterinjector", "test-parameter-injector", "1.8", testonly = True),
maven.artifact("com.google.truth", "truth", "1.1.3", testonly = True),
maven.artifact("com.google.truth.extensions", "truth-java8-extension", "0.41", testonly = True),
maven.artifact("com.googlecode.java-diff-utils", "diffutils", "1.3.0"),
maven.artifact("com.ryanharter.auto.value", "auto-value-gson-extension", "1.3.1"),
maven.artifact("com.ryanharter.auto.value", "auto-value-gson-runtime", "1.3.1"),
maven.artifact("com.ryanharter.auto.value", "auto-value-gson-factory", "1.3.1"),
maven.artifact("commons-codec", "commons-codec", "1.11"),
maven.artifact("junit", "junit", "4.13.2", testonly = True),
maven.artifact("net.bytebuddy", "byte-buddy-agent", "1.9.10", testonly = True),
maven.artifact("net.bytebuddy", "byte-buddy", "1.9.10", testonly = True),
maven.artifact("org.mockito", "mockito-core", "4.5.1", testonly = True),
maven.artifact("org.objenesis", "objenesis", "1.0", testonly = True),
maven.artifact("org.apache.commons", "commons-compress", "1.21"),
maven.artifact("org.apache.tomcat", "tomcat-annotations-api", "8.0.5"),
maven.artifact("org.apache.velocity", "velocity", "1.7"),
maven.artifact("org.tomlj", "tomlj", "1.1.0"),
maven.artifact("com.sun.mail", "javax.mail", "1.5.6"),
]
COPYBARA_MAVEN_ARTIFACT_ADDITIONAL_REPOSITORIES = [
"https://maven.google.com",
]
def copybara_maven_repositories():
maybe(
maven_install,
name = DEFAULT_REPOSITORY_NAME,
artifacts = COPYBARA_MAVEN_ARTIFACTS,
repositories = COPYBARA_MAVEN_ARTIFACT_ADDITIONAL_REPOSITORIES + ["https://repo1.maven.org/maven2"],
)