| 1 |
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 2 |
|
| 3 |
RULES_JVM_EXTERNAL_TAG = "2.2" |
| 4 |
RULES_JVM_EXTERNAL_SHA = "f1203ce04e232ab6fdd81897cf0ff76f2c04c0741424d192f28e65ae752ce2d6" |
| 5 |
|
| 6 |
http_archive( |
| 7 |
name = "rules_jvm_external", |
| 8 |
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, |
| 9 |
sha256 = RULES_JVM_EXTERNAL_SHA, |
| 10 |
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, |
| 11 |
) |
| 12 |
|
| 13 |
load("@rules_jvm_external//:defs.bzl", "maven_install") |
| 14 |
|
| 15 |
maven_install( |
| 16 |
artifacts = [ |
| 17 |
"junit:junit:4.12", |
| 18 |
"com.google.errorprone:error_prone_annotations:2.3.4", |
| 19 |
"com.google.code.findbugs:jsr305:3.0.2", |
| 20 |
"com.google.code.gson:gson:2.8.6", |
| 21 |
"com.google.truth:truth:1.0", |
| 22 |
], |
| 23 |
repositories = [ |
| 24 |
"https://maven.google.com", |
| 25 |
"https://repo1.maven.org/maven2", |
| 26 |
"https://jcenter.bintray.com/", |
| 27 |
], |
| 28 |
) |
| 29 |
|