Merge branch 'stable-2.9'
* stable-2.9: Include gerrit.war in api_{install,deploy} Change-Id: I5f9222d82ec252a3cc3ee00b7e5a0f1feec64d2b
This commit is contained in:
commit
13d776504b
2
BUCK
2
BUCK
@ -5,7 +5,7 @@ gerrit_war(name = 'chrome', ui = 'ui_chrome')
|
|||||||
gerrit_war(name = 'firefox', ui = 'ui_firefox')
|
gerrit_war(name = 'firefox', ui = 'ui_firefox')
|
||||||
gerrit_war(name = 'safari', ui = 'ui_safari')
|
gerrit_war(name = 'safari', ui = 'ui_safari')
|
||||||
gerrit_war(name = 'withdocs', docs = True)
|
gerrit_war(name = 'withdocs', docs = True)
|
||||||
gerrit_war(name = 'release', docs = True, context = ['//plugins:core.zip'])
|
gerrit_war(name = 'release', docs = True, context = ['//plugins:core.zip'], visibility = ['//tools/maven:'])
|
||||||
|
|
||||||
API_DEPS = [
|
API_DEPS = [
|
||||||
'//gerrit-extension-api:extension-api',
|
'//gerrit-extension-api:extension-api',
|
||||||
|
@ -136,13 +136,13 @@ project directories in `buck-out/gen`, here as example for plugin API:
|
|||||||
buck-out/gen/gerrit-plugin-api/plugin-api-javadoc.jar
|
buck-out/gen/gerrit-plugin-api/plugin-api-javadoc.jar
|
||||||
----
|
----
|
||||||
|
|
||||||
Install {extension,plugin,gwt}-api to the local maven repository:
|
Install {extension,plugin,gwt}-api and gerrit.war to the local maven repository:
|
||||||
|
|
||||||
----
|
----
|
||||||
buck build api_install
|
buck build api_install
|
||||||
----
|
----
|
||||||
|
|
||||||
Deploy {extension,plugin,gwt}-api to the remote maven repository:
|
Deploy {extension,plugin,gwt}-api and gerrit.war to the remote maven repository:
|
||||||
|
|
||||||
----
|
----
|
||||||
buck build api_deploy
|
buck build api_deploy
|
||||||
|
@ -78,7 +78,7 @@ def war(
|
|||||||
visibility = visibility,
|
visibility = visibility,
|
||||||
)
|
)
|
||||||
|
|
||||||
def gerrit_war(name, ui = 'ui_optdbg', context = [], docs = False):
|
def gerrit_war(name, ui = 'ui_optdbg', context = [], docs = False, visibility = []):
|
||||||
war(
|
war(
|
||||||
name = name,
|
name = name,
|
||||||
libs = LIBS + ['//gerrit-war:version'],
|
libs = LIBS + ['//gerrit-war:version'],
|
||||||
@ -89,4 +89,5 @@ def gerrit_war(name, ui = 'ui_optdbg', context = [], docs = False):
|
|||||||
'//gerrit-gwtui:' + ui + '.zip',
|
'//gerrit-gwtui:' + ui + '.zip',
|
||||||
] + context,
|
] + context,
|
||||||
docs = docs,
|
docs = docs,
|
||||||
|
visibility = visibility,
|
||||||
)
|
)
|
||||||
|
@ -22,6 +22,7 @@ maven_package(
|
|||||||
'gerrit-plugin-api': '//gerrit-plugin-api:plugin-api-javadoc',
|
'gerrit-plugin-api': '//gerrit-plugin-api:plugin-api-javadoc',
|
||||||
'gerrit-plugin-gwtui': '//gerrit-plugin-gwtui:gwtui-api-javadoc',
|
'gerrit-plugin-gwtui': '//gerrit-plugin-gwtui:gwtui-api-javadoc',
|
||||||
},
|
},
|
||||||
|
war = {'gerrit-war': '//:release'},
|
||||||
)
|
)
|
||||||
|
|
||||||
python_binary(
|
python_binary(
|
||||||
|
@ -18,11 +18,12 @@ def maven_package(
|
|||||||
url = None,
|
url = None,
|
||||||
jar = {},
|
jar = {},
|
||||||
src = {},
|
src = {},
|
||||||
doc = {}):
|
doc = {},
|
||||||
|
war = {}):
|
||||||
cmd = ['$(exe //tools/maven:mvn)', '-v', version, '-o', '$OUT']
|
cmd = ['$(exe //tools/maven:mvn)', '-v', version, '-o', '$OUT']
|
||||||
dep = []
|
dep = []
|
||||||
|
|
||||||
for type,d in [('jar', jar), ('java-source', src), ('javadoc', doc)]:
|
for type,d in [('jar', jar), ('java-source', src), ('javadoc', doc), ('war', war)]:
|
||||||
for a,t in d.iteritems():
|
for a,t in d.iteritems():
|
||||||
cmd.append('-s %s:%s:$(location %s)' % (a,type,t))
|
cmd.append('-s %s:%s:$(location %s)' % (a,type,t))
|
||||||
dep.append(t)
|
dep.append(t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user