I have different modules in my project which are generating config files as a JSON which are part of java_libarary. I need to copy this generated JSON files to a new module using bazel build. I am thinking algorithm to do that as :
- Read all dependency from bazel (assumption all modules which generate json will be added as dependency).
- Extract JAR files once by one in dependency
- Copy json to new location
- Package copied json to new tar as output
I am not sure, how i can do this in bazel, let me know if any one has similar example available.
Thanks in Advance...