b9c18a0c52
Change-Id: I7ebf6ef6690ec85f4792ec02bde3edc91c6d4cd0
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
include_defs('//VERSION')
|
|
include_defs('//tools/maven/package.defs')
|
|
|
|
URL = 'https://oss.sonatype.org/content/repositories/snapshots' \
|
|
if GERRIT_VERSION.endswith('-SNAPSHOT') else \
|
|
'https://oss.sonatype.org/service/local/staging/deploy/maven2'
|
|
|
|
maven_package(
|
|
repository = 'sonatype-nexus-staging',
|
|
url = URL,
|
|
version = GERRIT_VERSION,
|
|
jar = {
|
|
'gerrit-extension-api': '//gerrit-extension-api:extension-api',
|
|
'gerrit-plugin-api': '//gerrit-plugin-api:plugin-api',
|
|
'gerrit-plugin-gwtui': '//gerrit-plugin-gwtui:gwtui-api',
|
|
},
|
|
src = {
|
|
'gerrit-extension-api': '//gerrit-extension-api:extension-api-src',
|
|
'gerrit-plugin-api': '//gerrit-plugin-api:plugin-api-src',
|
|
'gerrit-plugin-gwtui': '//gerrit-plugin-gwtui:gwtui-api-src',
|
|
},
|
|
doc = {
|
|
'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'},
|
|
)
|
|
|
|
python_binary(
|
|
name = 'mvn',
|
|
main = 'mvn.py',
|
|
)
|