Bazel: Create sources for plugin API
To pubish to Maven Central, sources and javadoc artifacts must be created. Bazel java_library and java_binary rules provide sources out of the box. We need to combine single source artifacts (server, httpd and sshd) in ueber JAR and use java_binary rule for it. TEST PLAN: bazel build gerrit-plugin-api:plugin-api-sources_deploy.jar Change-Id: Iafb549b5d0c0b0d7749f301b1edbd48b167eea3b
This commit is contained in:
@@ -58,3 +58,21 @@ java_library(
|
||||
],
|
||||
visibility = ['//visibility:public'],
|
||||
)
|
||||
|
||||
java_binary(
|
||||
name = 'plugin-api-sources',
|
||||
main_class = 'Dummy',
|
||||
runtime_deps = [
|
||||
'//gerrit-antlr:libquery_exception-src.jar',
|
||||
'//gerrit-antlr:libquery_parser-src.jar',
|
||||
'//gerrit-common:libannotations-src.jar',
|
||||
'//gerrit-extension-api:libapi-src.jar',
|
||||
'//gerrit-gwtexpui:libserver-src.jar',
|
||||
'//gerrit-httpd:libhttpd-src.jar',
|
||||
'//gerrit-pgm:libinit-api-src.jar',
|
||||
'//gerrit-reviewdb:libserver-src.jar',
|
||||
'//gerrit-server:libserver-src.jar',
|
||||
'//gerrit-sshd:libsshd-src.jar',
|
||||
],
|
||||
visibility = ['//visibility:public'],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user