| load('//tools/bzl:genrule2.bzl', 'genrule2') |
| name = name + '__plugin', |
| deps = deps + ['//gerrit-plugin-api:lib-neverlink'], |
| visibility = ['//visibility:public'], |
| name = '%s__non_stamped' % name, |
| deploy_manifest_lines = manifest_entries + [ |
| "Gerrit-ApiType: plugin", |
| "Implementation-Vendor: Gerrit Code Review", |
| visibility = ['//visibility:public'], |
| # TODO(davido): Remove manual merge of manifest file when this feature |
| # request is implemented: https://github.com/bazelbuild/bazel/issues/2009 |
| srcs = ['%s__non_stamped_deploy.jar' % name], |
| "GEN_VERSION=$$(cat bazel-out/stable-status.txt | grep %s | cut -d ' ' -f 2)" % name.upper(), |
| "echo \"Implementation-Version: $$GEN_VERSION\n$$(cat META-INF/MANIFEST.MF)\" > META-INF/MANIFEST.MF", |
| outs = ['%s.jar' % name], |
| visibility = ['//visibility:public'], |