Fix bazel breakage caused by []

Although the GSON version in repositories.bzl was 2.8.5, the same name
(com_google_code_gson) was apparently used internally for version 2.7 for some
dependency of com.google.closure (soy?)

Changed the name, and it solved the problem. The new name is also "more
correct" as the package is com.google.gson, not com.google.code.gson.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=250313017
This commit is contained in:
guyben 2019-05-28 10:31:25 -07:00 committed by jianglai
parent c79e0ea670
commit 44ccd45439

View file

@ -60,7 +60,7 @@ def domain_registry_repositories(
omit_com_google_auto_factory = False,
omit_com_google_auto_service = False,
omit_com_google_auto_value = False,
omit_com_google_code_gson = False,
omit_com_google_gson = False,
omit_com_google_cloud_bigdataoss_gcsio = False,
omit_com_google_cloud_bigdataoss_util = False,
omit_com_google_code_findbugs_jsr305 = False,
@ -249,8 +249,8 @@ def domain_registry_repositories(
com_google_auto_service()
if not omit_com_google_auto_value:
com_google_auto_value()
if not omit_com_google_code_gson:
com_google_code_gson()
if not omit_com_google_gson:
com_google_gson()
if not omit_com_google_cloud_bigdataoss_gcsio:
com_google_cloud_bigdataoss_gcsio()
if not omit_com_google_cloud_bigdataoss_util:
@ -1134,9 +1134,9 @@ def com_google_auto_value():
]),
)
def com_google_code_gson():
def com_google_gson():
java_import_external(
name = "com_google_code_gson",
name = "com_google_gson",
licenses = ["notice"], # Apache 2.0
jar_sha256 = "233a0149fc365c9f6edbd683cfe266b19bdc773be98eabdaf6b3c924b48e7d81",
jar_urls = [