97d7b0d7b9
The plugin and extension jars follow the scheme gerrit-$FOO -> $FOO.jar gerrit-$FOO -> $FOO-src.jar gerrit-$FOO -> $FOO-javadoc.jar Hence, for the gerrit-acceptance-framework directory, the artifacts were expected as: * gerrit-acceptance-framework.jar * gerrit-acceptance-framework-src.jar * gerrit-acceptance-framework-javadoc.jar However, they are called 'api.jar', 'src.jar', 'javadoc.jar' without any qualifier in front. To make naming more consistent, we make the new gerrit-acceptance-framework artifacts follow the above scheme. Change-Id: I6fcefed4a8ba05aae4ae2dc6f22ff39e48dea56d
37 lines
1.3 KiB
Python
37 lines
1.3 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-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',
|
|
)
|