From a7e30b4c12962f1548e95f71d8ed000b1ae9935b Mon Sep 17 00:00:00 2001 From: Danna Kelmer Date: Wed, 6 Feb 2019 19:48:37 +0100 Subject: [PATCH] Stop using native maven_jar rule in grpc --- repositories.bzl | 181 +++++++++++++++++++++++++++++++---------------- 1 file changed, 121 insertions(+), 60 deletions(-) diff --git a/repositories.bzl b/repositories.bzl index f6252252f62..29cd1364812 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -1,6 +1,7 @@ """External dependencies for grpc-java.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external") def grpc_java_repositories( omit_com_google_api_grpc_google_common_protos = False, @@ -114,59 +115,75 @@ def grpc_java_repositories( ) def com_google_api_grpc_google_common_protos(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_api_grpc_proto_google_common_protos", artifact = "com.google.api.grpc:proto-google-common-protos:1.12.0", - sha1 = "1140cc74df039deb044ed0e320035e674dc13062", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "bd60cd7a423b00fb824c27bdd0293aaf4781be1daba6ed256311103fb4b84108", + licenses = ["notice"], # Apache 2.0 ) def com_google_auth_google_auth_library_credentials(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_auth_google_auth_library_credentials", artifact = "com.google.auth:google-auth-library-credentials:0.9.0", - sha1 = "8e2b181feff6005c9cbc6f5c1c1e2d3ec9138d46", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "ac9efdd6a930e4df906fa278576fa825d979f74315f2faf5c91fe7e6aabb2788", + licenses = ["notice"], # BSD 3-clause ) def com_google_auth_google_auth_library_oauth2_http(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_auth_google_auth_library_oauth2_http", artifact = "com.google.auth:google-auth-library-oauth2-http:0.9.0", - sha1 = "04e6152c3aead24148627e84f5651e79698c00d9", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "e55d9722102cc1245c8c43d69acd49d3c9bbfcc1bcf722e971425506b970097e", + licenses = ["notice"], # BSD 3-clause ) def com_google_code_findbugs_jsr305(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_code_findbugs_jsr305", artifact = "com.google.code.findbugs:jsr305:3.0.2", - sha1 = "25ea2e8b0c338a877313bd4672d3fe056ea78f0d", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "766ad2a0783f2687962c8ad74ceecc38a28b9f72a2d085ee438b7813e928d0c7", + licenses = ["notice"], # Apache 2.0 ) def com_google_code_gson(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_code_gson_gson", artifact = "com.google.code.gson:gson:jar:2.7", - sha1 = "751f548c85fa49f330cecbb1875893f971b33c4e", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "2d43eb5ea9e133d2ee2405cc14f5ee08951b8361302fdd93494a3a997b508d32", + licenses = ["notice"], # Apache 2.0 ) def com_google_errorprone_error_prone_annotations(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_errorprone_error_prone_annotations", artifact = "com.google.errorprone:error_prone_annotations:2.2.0", - sha1 = "88e3c593e9b3586e1c6177f89267da6fc6986f0c", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "6ebd22ca1b9d8ec06d41de8d64e0596981d9607b42035f9ed374f9de271a481a", + licenses = ["notice"], # Apache 2.0 ) def com_google_guava(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_guava_guava", artifact = "com.google.guava:guava:26.0-android", - sha1 = "ef69663836b339db335fde0df06fb3cd84e3742b", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "1d044ebb866ef08b7d04e998b4260c9b52fab6e6d6b68d207859486bb3686cd5", + licenses = ["notice"], # Apache 2.0 ) def com_google_j2objc_j2objc_annotations(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_j2objc_j2objc_annotations", artifact = "com.google.j2objc:j2objc-annotations:1.1", - sha1 = "ed28ded51a8b1c6b112568def5f4b455e6809019", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "2994a7eb78f2710bd3d3bfb639b2c94e219cedac0d4d084d516e78c16dddecf6", + licenses = ["notice"], # Apache 2.0 ) def com_google_protobuf(): @@ -190,156 +207,200 @@ def com_google_protobuf_javalite(): ) def com_google_protobuf_nano_protobuf_javanano(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_protobuf_nano_protobuf_javanano", artifact = "com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-5", - sha1 = "357e60f95cebb87c72151e49ba1f570d899734f8", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "6d30f1e667a8952e1c90a0a125f0ce0edf84d6b1d51c91d8555c4fb549e3d7a1", + licenses = ["notice"], # BSD 2-clause ) def com_google_re2j(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_re2j", artifact = "com.google.re2j:re2j:1.2", - sha1 = "4361eed4abe6f84d982cbb26749825f285996dd2", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "e9dc705fd4c570344b54a7146b2e3a819cdc271a29793f4acc1a93b56a388e59", + licenses = ["notice"], # Go License ) def com_google_truth_truth(): - native.maven_jar( + jvm_maven_import_external( name = "com_google_truth_truth", artifact = "com.google.truth:truth:0.42", - sha1 = "b5768f644b114e6cf5c3962c2ebcb072f788dcbb", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "dd652bdf0c4427c59848ac0340fd6b6d20c2cbfaa3c569a8366604dbcda5214c", + licenses = ["notice"], # Apache 2.0 ) def com_squareup_okhttp(): - native.maven_jar( + jvm_maven_import_external( name = "com_squareup_okhttp_okhttp", artifact = "com.squareup.okhttp:okhttp:2.5.0", - sha1 = "4de2b4ed3445c37ec1720a7d214712e845a24636", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "1cc716e29539adcda677949508162796daffedb4794cbf947a6f65e696f0381c", + licenses = ["notice"], # Apache 2.0 ) def com_squareup_okio(): - native.maven_jar( + jvm_maven_import_external( name = "com_squareup_okio_okio", artifact = "com.squareup.okio:okio:1.13.0", - sha1 = "a9283170b7305c8d92d25aff02a6ab7e45d06cbe", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "734269c3ebc5090e3b23566db558f421f0b4027277c79ad5d176b8ec168bb850", + licenses = ["notice"], # Apache 2.0 ) def io_netty_buffer(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_buffer", artifact = "io.netty:netty-buffer:4.1.32.Final", - sha1 = "046ede57693788181b2cafddc3a5967ed2f621c8", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "8ac0e30048636bd79ae205c4f9f5d7544290abd3a7ed39d8b6d97dfe3795afc1", + licenses = ["notice"], # Apache 2.0 ) def io_netty_codec(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_codec", artifact = "io.netty:netty-codec:4.1.32.Final", - sha1 = "8f32bd79c5a16f014a4372ed979dc62b39ede33a", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "dbd6cea7d7bf5a2604e87337cb67c9468730d599be56511ed0979aacb309f879", + licenses = ["notice"], # Apache 2.0 ) def io_netty_codec_http(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_codec_http", artifact = "io.netty:netty-codec-http:4.1.32.Final", - sha1 = "0b9218adba7353ad5a75fcb639e4755d64bd6ddf", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "db2c22744f6a4950d1817e4e1a26692e53052c5d54abe6cceecd7df33f4eaac3", + licenses = ["notice"], # Apache 2.0 ) def io_netty_codec_http2(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_codec_http2", artifact = "io.netty:netty-codec-http2:4.1.32.Final", - sha1 = "d14eb053a1f96d3330ec48e77d489118d547557a", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "4d4c6cfc1f19efb969b9b0ae6cc977462d202867f7dcfee6e9069977e623a2f5", + licenses = ["notice"], # Apache 2.0 ) def io_netty_codec_socks(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_codec_socks", artifact = "io.netty:netty-codec-socks:4.1.32.Final", - sha1 = "b1e83cb772f842839dbeebd9a1f053da98bf56d2", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "fe2f2e97d6c65dc280623dcfd24337d8a5c7377049c120842f2c59fb83d7408a", + licenses = ["notice"], # Apache 2.0 ) def io_netty_common(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_common", artifact = "io.netty:netty-common:4.1.32.Final", - sha1 = "e95de4f762606f492328e180c8ad5438565a5e3b", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "cc993e660f8f8e3b033f1d25a9e2f70151666bdf878d460a6508cb23daa696dc", + licenses = ["notice"], # Apache 2.0 ) def io_netty_handler(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_handler", artifact = "io.netty:netty-handler:4.1.32.Final", - sha1 = "b4e3fa13f219df14a9455cc2111f133374428be0", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "07d9756e48b5f6edc756e33e8b848fb27ff0b1ae087dab5addca6c6bf17cac2d", + licenses = ["notice"], # Apache 2.0 ) def io_netty_handler_proxy(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_handler_proxy", artifact = "io.netty:netty-handler-proxy:4.1.32.Final", - sha1 = "58b621246262127b97a871b88c09374c8c324cb7", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "10d1081ed114bb0e76ebbb5331b66a6c3189cbdefdba232733fc9ca308a6ea34", + licenses = ["notice"], # Apache 2.0 ) def io_netty_resolver(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_resolver", artifact = "io.netty:netty-resolver:4.1.32.Final", - sha1 = "3e0114715cb125a12db8d982b2208e552a91256d", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "9b4a19982047a95ea4791a7ad7ad385c7a08c2ac75f0a3509cc213cb32a726ae", + licenses = ["notice"], # Apache 2.0 ) def io_netty_tcnative_boringssl_static(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_tcnative_boringssl_static", artifact = "io.netty:netty-tcnative-boringssl-static:2.0.20.Final", - sha1 = "071141fca3e805d9d248cb43e1909cf6a50ad92c", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "c0bbfcb116ae9928ebb17cbfbdd80ee51980ad228a4fffb0cb3137ac91b1bc09", + licenses = ["notice"], # Apache 2.0 ) def io_netty_transport(): - native.maven_jar( + jvm_maven_import_external( name = "io_netty_netty_transport", artifact = "io.netty:netty-transport:4.1.32.Final", - sha1 = "d5e5a8ff9c2bc7d91ddccc536a5aca1a4355bd8b", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "175bae0d227d7932c0c965c983efbb3cf01f39abe934f5c4071d0319784715fb", + licenses = ["notice"], # Apache 2.0 ) def io_opencensus_api(): - native.maven_jar( + jvm_maven_import_external( name = "io_opencensus_opencensus_api", artifact = "io.opencensus:opencensus-api:0.18.0", - sha1 = "b89a8f8dfd1e1e0d68d83c82a855624814b19a6e", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "45421ffe95271aba94686ed8d4c5070fe77dc2ff0b922688097f0dd40f1931b1", + licenses = ["notice"], # Apache 2.0 ) def io_opencensus_grpc_metrics(): - native.maven_jar( + jvm_maven_import_external( name = "io_opencensus_opencensus_contrib_grpc_metrics", artifact = "io.opencensus:opencensus-contrib-grpc-metrics:0.18.0", - sha1 = "8e90fab2930b6a0e67dab48911b9c936470d43dd", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "1f90585e777b1e0493dbf22e678303369a8d5b7c750b4eda070a34ca99271607", + licenses = ["notice"], # Apache 2.0 ) def javax_annotation(): # Use //stub:javax_annotation for neverlink=1 support. - native.maven_jar( + jvm_maven_import_external( name = "javax_annotation_javax_annotation_api", artifact = "javax.annotation:javax.annotation-api:1.2", - sha1 = "479c1e06db31c432330183f5cae684163f186146", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "5909b396ca3a2be10d0eea32c74ef78d816e1b4ead21de1d78de1f890d033e04", + licenses = ["reciprocal"], # CDDL License ) def junit_junit(): - native.maven_jar( + jvm_maven_import_external( name = "junit_junit", artifact = "junit:junit:4.12", - sha1 = "2973d150c0dc1fefe998f834810d68f278ea58ec", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "59721f0805e223d84b90677887d9ff567dc534d7c502ca903c0c2b17f05c116a", + licenses = ["notice"], # EPL 1.0 ) def org_apache_commons_lang3(): - native.maven_jar( + jvm_maven_import_external( name = "org_apache_commons_commons_lang3", artifact = "org.apache.commons:commons-lang3:3.5", - sha1 = "6c6c702c89bfff3cd9e80b04d668c5e190d588c6", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "8ac96fc686512d777fca85e144f196cd7cfe0c0aec23127229497d1a38ff651c", + licenses = ["notice"], # Apache 2.0 ) def org_codehaus_mojo_animal_sniffer_annotations(): - native.maven_jar( + jvm_maven_import_external( name = "org_codehaus_mojo_animal_sniffer_annotations", artifact = "org.codehaus.mojo:animal-sniffer-annotations:1.17", - sha1 = "f97ce6decaea32b36101e37979f8b647f00681fb", + server_urls = ["http://central.maven.org/maven2"], + artifact_sha256 = "92654f493ecfec52082e76354f0ebf87648dc3d5cec2e3c3cdb947c016747a53", + licenses = ["notice"], # MIT )