vaticle / bazel-distribution

Bazel rules for assembling and deploying software distributions (see @vaticle for usage example)
https://bazel.build
Apache License 2.0
155 stars 53 forks source link

assemble_maven doesn't know how to package exports #379

Open anuragagarwal561994 opened 11 months ago

anuragagarwal561994 commented 11 months ago

The line below creates issue for exports since this is not handled while packaging:

https://github.com/vaticle/bazel-distribution/blob/3729c309c6eb34ff5280ca071e5bc281c04715d8/maven/rules.bzl#L211

An example where this breaks is @io_grpc_grpc_java//stub:javax_annotation

https://github.com/grpc/grpc-java/blob/master/stub/BUILD.bazel

Here I get the above error:

fail("Unsure how to package dependency for target: %s" % target)

and hence I am not able to assemble jars which require building grpc.