tools/nongoogle.bzl: separate out dependencies exempt from library compliance

Change-Id: I4b96d0cd5277371bb484118cb94c5f6e6b47c3b4
This commit is contained in:
Han-Wen Nienhuys
2019-04-17 17:19:55 +02:00
committed by David Ostrovsky
parent c8b633d5ce
commit f37b820c32
2 changed files with 16 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file"
load("//tools/bzl:maven_jar.bzl", "GERRIT", "MAVEN_LOCAL", "maven_jar")
load("//lib/codemirror:cm.bzl", "CM_VERSION", "DIFF_MATCH_PATCH_VERSION")
load("//plugins:external_plugin_deps.bzl", "external_plugin_deps")
load("//tools:nongoogle.bzl", "declare_nongoogle_deps")
http_archive(
name = "bazel_skylib",
@@ -646,12 +647,7 @@ maven_jar(
sha1 = "ed193d86e0af90cc2342aedbe73c5d86b03fa09b",
)
# Transitive dependency of commons-compress
maven_jar(
name = "tukaani-xz",
artifact = "org.tukaani:xz:1.6",
sha1 = "05b6f921f1810bdf90e25471968f741f87168b64",
)
declare_nongoogle_deps()
LUCENE_VERS = "6.6.5"

14
tools/nongoogle.bzl Normal file
View File

@@ -0,0 +1,14 @@
load("//tools/bzl:maven_jar.bzl", "GERRIT", "MAVEN_LOCAL", "maven_jar")
def declare_nongoogle_deps():
"""loads dependencies that are not used at Google.
These are exempt from library compliance review.
"""
# Transitive dependency of commons-compress
maven_jar(
name = "tukaani-xz",
artifact = "org.tukaani:xz:1.6",
sha1 = "05b6f921f1810bdf90e25471968f741f87168b64",
)