| include_defs('//bucklets/grpc.bucklet') |
| fetch_grpc_plugin(version = '1.3.1') |
| # Repackaging of gRPC 1.3.* to solve the OSGI split package issue. |
| # If bumping the gRPC version, please write a new rule. |
| def grpc_core_repkg_131(): |
| '//lib:google-instrumentation-0.3.0', |
| "//lib:google-errorprone-2.0.19" |
| name = "grpc-src-zip-131", |
| url = "https://github.com/grpc/grpc-java/archive/v1.3.1.zip", |
| sha1 = "03dc21440fdfa920aa0e905da17df35b0d6c9a44", |
| for pkg in ['core', 'context']: |
| name = 'grpc-' + pkg + '-130' |
| bash = 'jar xf $(location :grpc-src-zip-131) grpc-java-1.3.1/' + pkg + '/src/main/java ' |
| + '&& cd grpc-java-1.3.1/' + pkg + '/src/main/java ' |
| name = 'grpc-core-repkg-1.3.1', |
| package_name_root = 'io.grpc', |
| import_packages = '!javax.annotation,!com.google.errorprone.annotations,*', |