50785fdbb2
Currently too big files are published, because some unwanted transitive dependencies are included in the final artifacts. That will be fixed in follow-up change by using neverlink option in java_library rule or using provided_deps attribute that will be addded in future releases of Bazel: [1]. TEST PLAN: $ VERBOSE=1 tools/maven/api.sh install bazel $ VERBOSE=1 tools/maven/api.sh install buck * [1] https://github.com/bazelbuild/bazel/issues/1402 Change-Id: Ie73d4ae34d96be7f97f6329c4c30c814f54688d5
32 lines
1.4 KiB
Python
32 lines
1.4 KiB
Python
load('//:version.bzl', 'GERRIT_VERSION')
|
|
load('//tools/maven:package.bzl', 'maven_package')
|
|
|
|
MAVEN_REPOSITORY = 'sonatype-nexus-staging'
|
|
# TODO(davido): support snapshot repositories
|
|
MAVEN_RELEASE_URL = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
|
|
|
|
maven_package(
|
|
repository = MAVEN_REPOSITORY,
|
|
url = MAVEN_RELEASE_URL,
|
|
version = GERRIT_VERSION,
|
|
jar = {
|
|
'gerrit-acceptance-framework': '//gerrit-acceptance-framework:acceptance-framework_deploy.jar',
|
|
'gerrit-extension-api': '//gerrit-extension-api:extension-api_deploy.jar',
|
|
'gerrit-plugin-api': '//gerrit-plugin-api:plugin-api_deploy.jar',
|
|
'gerrit-plugin-gwtui': '//gerrit-plugin-gwtui:gwtui-api_deploy.jar',
|
|
},
|
|
src = {
|
|
'gerrit-acceptance-framework': '//gerrit-acceptance-framework:liblib-src.jar',
|
|
'gerrit-extension-api': '//gerrit-extension-api:libapi-src.jar',
|
|
'gerrit-plugin-api': '//gerrit-plugin-api:plugin-api-sources_deploy.jar',
|
|
'gerrit-plugin-gwtui': '//gerrit-plugin-gwtui:gwtui-api-source_deploy.jar',
|
|
},
|
|
doc = {
|
|
'gerrit-acceptance-framework': '//gerrit-acceptance-framework:acceptance-framework-javadoc',
|
|
'gerrit-extension-api': '//gerrit-extension-api:extension-api-javadoc',
|
|
'gerrit-plugin-api': '//gerrit-plugin-api:plugin-api-javadoc',
|
|
'gerrit-plugin-gwtui': '//gerrit-plugin-gwtui:gwtui-api-javadoc',
|
|
},
|
|
war = {'gerrit-war': '//:release'},
|
|
)
|