The documentation for the resource attribute in java_library says that "the location of the resources inside of the jar file is determined using a heuristic, but it's often in a directory corresponding to the build package name." Is this heuristic documented anywhere and is there a way to control it? I'm depending on a resource "processors/src/main/resources/velocity.properties" from a root "AnnotationProcessors" package, and Bazel is placing the file at "AnnotationProcessors/processors/src/main/resources/velocity.properties". Ideally I'd like it to match existing Gradle behavior that treats "src/main/resources" as a root, so the properties file would appear at the root level in the jar.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To post to this group, send email to bazel-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/95de7428-0ece-4cd6-bfc4-a6cae596cfba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks, that's helpful. I'll move my resource files under java/ for now. IMO it would be a good idea for the heuristic to identify "resources" as well as "java" as a root, since this is a very common layout in open-source projects: https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/3332c55c-9132-436b-a96c-5f50bf9e65e2%40googlegroups.com.