mirror of
https://github.com/google/nomulus.git
synced 2025-08-04 08:52:12 +02:00
Switch from Guava Optionals to Java 8 Optionals
This was a surprisingly involved change. Some of the difficulties included java.util.Optional purposely not being Serializable (so I had to move a few Optionals in mapreduce classes to @Nullable) and having to add the Truth Java8 extension library for assertion support. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171863777
This commit is contained in:
parent
184b2b56ac
commit
c0f8da0c6e
581 changed files with 1325 additions and 932 deletions
|
@ -72,6 +72,7 @@ def domain_registry_repositories(
|
|||
omit_com_google_re2j=False,
|
||||
omit_com_google_template_soy=False,
|
||||
omit_com_google_truth=False,
|
||||
omit_com_google_truth_extensions_truth_java8_extension=False,
|
||||
omit_com_googlecode_charts4j=False,
|
||||
omit_com_googlecode_json_simple=False,
|
||||
omit_com_ibm_icu_icu4j=False,
|
||||
|
@ -212,6 +213,8 @@ def domain_registry_repositories(
|
|||
com_google_template_soy()
|
||||
if not omit_com_google_truth:
|
||||
com_google_truth()
|
||||
if not omit_com_google_truth_extensions_truth_java8_extension:
|
||||
com_google_truth_extensions_truth_java8_extension()
|
||||
if not omit_com_googlecode_charts4j:
|
||||
com_googlecode_charts4j()
|
||||
if not omit_com_googlecode_json_simple:
|
||||
|
@ -1166,6 +1169,21 @@ def com_google_truth():
|
|||
],
|
||||
)
|
||||
|
||||
def com_google_truth_extensions_truth_java8_extension():
|
||||
java_import_external(
|
||||
name = "com_google_truth_extensions_truth_java8_extension",
|
||||
jar_sha256 = "44566c46783296856c80b14fc3b324d0616c192fa0090214b0eaf1b0b5697266",
|
||||
jar_urls = [
|
||||
"http://central.maven.org/maven2/com/google/truth/extensions/truth-java8-extension/0.36/truth-java8-extension-0.36.jar",
|
||||
],
|
||||
licenses = ["notice"], # The Apache Software License, Version 2.0
|
||||
testonly_ = True,
|
||||
deps = [
|
||||
"@com_google_truth",
|
||||
"@com_google_errorprone_error_prone_annotations",
|
||||
],
|
||||
)
|
||||
|
||||
def com_googlecode_charts4j():
|
||||
java_import_external(
|
||||
name = "com_googlecode_charts4j",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue