gerrit/tools/maven/BUCK
David Pursehouse 35fda70805 Maven: Split Maven repository settings out to a separate def file
This will allow a cleaner patch when forking Gerrit to deploy
to a different repository than the official release repository
on Maven Central.

Change-Id: Ic2ec2acb1fe9512782f8b1fe0b7e2ad2131e099d
2015-12-14 19:25:33 +09:00

39 lines
1.3 KiB
Python

include_defs('//VERSION')
include_defs('//tools/maven/package.defs')
include_defs('//tools/maven/repository.defs')
if GERRIT_VERSION.endswith('-SNAPSHOT'):
URL = MAVEN_SNAPSHOT_URL
else:
URL = MAVEN_RELEASE_URL
maven_package(
repository = MAVEN_REPOSITORY,
url = URL,
version = GERRIT_VERSION,
jar = {
'gerrit-acceptance-framework': '//gerrit-acceptance-framework:acceptance-framework',
'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-acceptance-framework': '//gerrit-acceptance-framework:acceptance-framework-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-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'},
)
python_binary(
name = 'mvn',
main = 'mvn.py',
)