diff --git a/tensorflow/tools/pip_package/BUILD b/tensorflow/tools/pip_package/BUILD index 7645612cf14..91c5cd094c4 100644 --- a/tensorflow/tools/pip_package/BUILD +++ b/tensorflow/tools/pip_package/BUILD @@ -209,7 +209,7 @@ filegroup( ) + if_ngraph([ "@ngraph//:LICENSE", "@ngraph_tf//:LICENSE", - "@nlohmann_json_lib//:LICENSE", + "@nlohmann_json_lib//:LICENSE.MIT", ]) + tf_additional_license_deps(), ) diff --git a/third_party/ngraph/ngraph.BUILD b/third_party/ngraph/ngraph.BUILD index f73ce4f674c..31aa3cee516 100644 --- a/third_party/ngraph/ngraph.BUILD +++ b/third_party/ngraph/ngraph.BUILD @@ -1,14 +1,6 @@ licenses(["notice"]) # 3-Clause BSD -exports_files(["license.txt"]) - -filegroup( - name = "LICENSE", - srcs = [ - "license.txt", - ], - visibility = ["//visibility:public"], -) +exports_files(["LICENSE"]) cc_library( name = "ngraph_core", diff --git a/third_party/ngraph/ngraph_tf.BUILD b/third_party/ngraph/ngraph_tf.BUILD index 0c2c8a718f8..4d96ccf2f22 100644 --- a/third_party/ngraph/ngraph_tf.BUILD +++ b/third_party/ngraph/ngraph_tf.BUILD @@ -1,14 +1,6 @@ licenses(["notice"]) # 3-Clause BSD -exports_files(["license.txt"]) - -filegroup( - name = "LICENSE", - srcs = [ - "license.txt", - ], - visibility = ["//visibility:public"], -) +exports_files(["LICENSE"]) load( "@org_tensorflow//tensorflow:tensorflow.bzl", diff --git a/third_party/ngraph/nlohmann_json.BUILD b/third_party/ngraph/nlohmann_json.BUILD index a0b18a51cb4..04c8db6a961 100644 --- a/third_party/ngraph/nlohmann_json.BUILD +++ b/third_party/ngraph/nlohmann_json.BUILD @@ -1,14 +1,6 @@ licenses(["notice"]) # 3-Clause BSD -exports_files(["license.txt"]) - -filegroup( - name = "LICENSE", - srcs = [ - "license.txt", - ], - visibility = ["//visibility:public"], -) +exports_files(["LICENSE.MIT"]) cc_library( name = "nlohmann_json_lib",