Bazel: Publish maven artifacts to local and remote repositories

Currently too big files are published, because some unwanted transitive
dependencies are included in the final artifacts. That will be fixed in
follow-up change by using neverlink option in java_library rule or using
provided_deps attribute that will be addded in future releases of Bazel:
[1].

TEST PLAN:

  $ VERBOSE=1 tools/maven/api.sh install bazel
  $ VERBOSE=1 tools/maven/api.sh install buck

* [1] https://github.com/bazelbuild/bazel/issues/1402

Change-Id: Ie73d4ae34d96be7f97f6329c4c30c814f54688d5
This commit is contained in:
David Ostrovsky
2016-10-28 09:17:14 +02:00
committed by David Ostrovsky
parent 76eac6f3fc
commit 50785fdbb2
11 changed files with 175 additions and 18 deletions

View File

@@ -53,7 +53,7 @@ for project in ['gerrit-acceptance-framework', 'gerrit-extension-api',
replace_in_file(pom, src_pattern)
src_pattern = re.compile(r"^(GERRIT_VERSION = ')([-.\w]+)(')$", re.MULTILINE)
replace_in_file('VERSION', src_pattern)
replace_in_file('version.bzl', src_pattern)
src_pattern = re.compile(r'^(\s*-DarchetypeVersion=)([-.\w]+)(\s*\\)$',
re.MULTILINE)