From 315f71a6ca268a47705a479966c261c54e55d0b6 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Mon, 31 May 2021 22:38:23 +0800 Subject: [PATCH] third_party: replace "reactive_streams" and "rxjava3" in Debian build --- third_party/BUILD | 6 ++++-- tools/distributions/debian/debian_java.BUILD | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/third_party/BUILD b/third_party/BUILD index 8819c694ac2bf7..996f7e9736e5ac 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -524,13 +524,15 @@ distrib_java_import( srcjar = "javax_annotations/javax.annotation-api-1.3.2-sources.jar", ) -java_import( +distrib_java_import( name = "reactive_streams", + enable_distributions = ["debian"], jars = ["reactive_streams/reactive-streams-1.0.3.jar"], ) -java_import( +distrib_java_import( name = "rxjava3", + enable_distributions = ["debian"], jars = ["rxjava3/rxjava-3.0.9.jar"], exports = [":reactive_streams"], deps = [":reactive_streams"], diff --git a/tools/distributions/debian/debian_java.BUILD b/tools/distributions/debian/debian_java.BUILD index 8a6eb29257d5da..33eba5aa34c00a 100644 --- a/tools/distributions/debian/debian_java.BUILD +++ b/tools/distributions/debian/debian_java.BUILD @@ -458,3 +458,16 @@ java_import( "junit4.jar", ], ) + +# libreactive-streams-java +java_import( + name = "reactive_streams", + jars = ["reactive-streams.jar"], +) + +# librx-java +java_import( + name = "rxjava3", + jars = ["rxjava.jar"], + deps = [":reactive_streams"], +)