BUCK: deploy plugin api to local and remote maven repos

`buck build api_install` copies the artifacts to the local maven repository.

`buck build api_deploy` uploads the artifacts to the remote maven repository.
The type of the repo is induced from the Gerrit version name, i. e.
* 2.8-SNAPSHOT: snapshot repo
* 2.8: release repo

Change-Id: I063834bb39311a4d92f5fdbb183f70b1fb8418b6
This commit is contained in:
David Ostrovsky
2013-05-30 01:10:12 +02:00
parent 72623a1a3e
commit 6e6a967004
7 changed files with 162 additions and 7 deletions

17
BUCK
View File

@@ -6,19 +6,24 @@ gerrit_war(name = 'firefox', ui = 'ui_firefox')
gerrit_war(name = 'withdocs', context = DOCS)
gerrit_war(name = 'release', context = DOCS + ['//plugins:core.zip'])
API_DEPS = [
':extension-api',
':extension-api-src',
':plugin-api',
':plugin-api-src',
]
genrule(
name = 'api',
cmd = '',
srcs = [],
deps = [
':extension-api',
':extension-api-src',
':plugin-api',
':plugin-api-src',
],
deps = API_DEPS,
out = '__fake.api__',
)
maven_install(deps = API_DEPS)
maven_deploy(deps = API_DEPS)
java_binary(name = 'extension-api', deps = [':extension-lib'])
java_library(
name = 'extension-lib',