Skip to content

Commit 06cc4be

Browse files
committed
multiple pin files for one WORKSPACE
1 parent 6058733 commit 06cc4be

File tree

3 files changed

+383
-1
lines changed

3 files changed

+383
-1
lines changed

WORKSPACE

+19
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ http_archive(
1616
load("@rules_jvm_external//:defs.bzl", "maven_install")
1717

1818
maven_install(
19+
name = "maven",
1920
artifacts = [
2021
"org.apache.thrift:libthrift:0.12.0",
2122
],
@@ -29,3 +30,21 @@ maven_install(
2930
load("@maven//:defs.bzl", "pinned_maven_install")
3031
pinned_maven_install()
3132

33+
maven_install(
34+
name = "special",
35+
artifacts = [
36+
"junit:junit:4.12",
37+
"com.google.guava:guava:28.0-jre",
38+
"org.apache.commons:commons-compress:1.8.1",
39+
"com.fasterxml.jackson.core:jackson-databind:2.3.3",
40+
],
41+
fetch_sources = True,
42+
repositories = [
43+
"https://jcenter.bintray.com/",
44+
],
45+
maven_install_json = "//:special_install.json",
46+
)
47+
48+
load("@special//:defs.bzl", special_pin = "pinned_maven_install")
49+
pinned_maven_install()
50+

maven_install.json

-1
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,3 @@
175175
"__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": 1897687777
176176
}
177177
}
178-

0 commit comments

Comments
 (0)