gerrit/lib/codemirror/BUILD
Han-Wen Nienhuys 42ea853037 bazel: remove code to sniff license field in bower.json.
Instead, use a hard-coded map of licenses.

Hardcode a false dependency on diff-match-patch to avoid a diff for
the Apache2.0 license.

Tested:
  bazel build Documentation:js_licenses.txt
  buck build Documentation:js_licenses.txt
  diff -u  buck-out/gen/Documentation/js_licenses.txt/js_licenses.txt \
    bazel-genfiles/Documentation/js_licenses.txt
 diff shows only diffs for added [[header]] anchors.

Change-Id: I7886e1fadec900cf854a1b3b7c538b83d66af7a4
2016-12-20 15:44:52 +01:00

12 lines
273 B
Python

load("//lib/codemirror:cm.bzl", "pkg_cm")
# This library is only used to insert a license statement into
# js_licenses.txt.
java_library(
name = "diff-match-patch",
runtime_deps = [ "@diff_match_patch//jar" ],
data = [ "//lib:LICENSE-Apache2.0" ],
)
pkg_cm()