Skip to content

Commit

Permalink
multiple pin files for one WORKSPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
philomather committed Nov 12, 2021
1 parent 6058733 commit 06cc4be
Show file tree
Hide file tree
Showing 3 changed files with 383 additions and 1 deletion.
19 changes: 19 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ http_archive(
load("@rules_jvm_external//:defs.bzl", "maven_install")

maven_install(
name = "maven",
artifacts = [
"org.apache.thrift:libthrift:0.12.0",
],
Expand All @@ -29,3 +30,21 @@ maven_install(
load("@maven//:defs.bzl", "pinned_maven_install")
pinned_maven_install()

maven_install(
name = "special",
artifacts = [
"junit:junit:4.12",
"com.google.guava:guava:28.0-jre",
"org.apache.commons:commons-compress:1.8.1",
"com.fasterxml.jackson.core:jackson-databind:2.3.3",
],
fetch_sources = True,
repositories = [
"https://jcenter.bintray.com/",
],
maven_install_json = "//:special_install.json",
)

load("@special//:defs.bzl", special_pin = "pinned_maven_install")
pinned_maven_install()

1 change: 0 additions & 1 deletion maven_install.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,3 @@
"__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": 1897687777
}
}

Loading

0 comments on commit 06cc4be

Please sign in to comment.