7b325695ab
* stable-2.16: Consume JGit artifacts from Maven Central Consume JGit artifacts from Maven Central gr-related-changes: Don't show "Same topic" for only one change RelatedChanges: Don't show "Same Topic" for only one change ChangeEditApi: Allow to set options on change edit detail request JS API: Expose invalidateReposCache method restAPI.invalidateGroupsCache: Remove unused parameters restAPI.invalidateReposCache: Remove unused parameters Add Javadoc to clarify behavior of {Accounts|Changes|Groups}#withOptions Update highlight.js to master branch Docs: Add use-case for Private changes OnlineNoteDbMigrationIT: improve readability of some tests Update git submodules migrate-to-note-db: add --skip-project option OnlineNoteDbMigrationIT: Reuse existing constant Do not crash if permitted labels array is empty Fix '/' getting typed in search bar when pressed Encode project name in download commands ProjectResetter: Avoid Repository#getAllRefs AbstractDaemonTest: Avoid Repository#getAllRefs ChangeUtil: Remove javadoc references to deprecated JGit methods Set version to 2.16.4-SNAPSHOT AccountManagerIT: Fix failing authentication tests ChangeEditApiImpl: Access non-Singleton change edit classes via Provider ListChangesOption: Add missing word in Javadoc Update git submodules Update git submodules Fix broken links in gr-icons.html Add release notes for Gerrit v2.10.8 AccountIT#updateDisplayName: Rewrite to work with updated account manager Add release notes for Gerrit v2.9.5 AccountApiImpl: Fix message in exception RelatedChangeAndCommitInfo: Use default CommitInfo#toString Support Get Related in extension API CommitInfo: Use ToStringHelper CommitInfo: Handle root commits in toString() Implement equals/hashCode/toString in CommitInfo and friends Set version to 2.15.9-SNAPSHOT AccountIT: Disable failing updateDisplayName test Set version to 2.16.3 Set version to 2.13.12 Set version to 2.12.9 Set version to 2.11.12 Set version to 2.10.8 Upgrade JGit to 5.1.5.201812261915-r Set version to 2.15.8 Upgrade JGit to 4.9.8.201812241815-r Set version to 2.9.5 Set version to 2.14.18 Revert "Fix the missing DB entry in Gerrit DB" Upgrade JGit to 4.7.7.201812240805-r maven_jar: Add repo.eclipse.org to supported repositories Update git submodules ChangeApi: Add method to list change reviewers Bazel: Automatically fix lint errors with buildifier 0.20.0 Revert "Temp fix for projects list ordering in PolyGerrit" Do not center the "By User" column in the Group Audit Log table Bazel: Fix more buildifier warnings Bazel: Automatically fix lint errors with buildifier 0.20.0 Fix typo in documentation of edit preferences Add MIME type for favicons to list of allowed image types. Bazel: Automatically fix lint errors with buildifier Mail: Use correct patch set when reading line from file Upgrade JGit to 4.5.5.201812240535-r Change-Id: I15dd15a2e3a1171ddfb792a3f17c43861d434421
79 lines
1.7 KiB
Python
79 lines
1.7 KiB
Python
load("//tools/bzl:genrule2.bzl", "genrule2")
|
|
load("//tools/bzl:pkg_war.bzl", "pkg_war")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
config_setting(
|
|
name = "java9",
|
|
values = {
|
|
"java_toolchain": "@bazel_tools//tools/jdk:toolchain_java9",
|
|
},
|
|
)
|
|
|
|
config_setting(
|
|
name = "java_next",
|
|
values = {
|
|
"java_toolchain": "@bazel_tools//tools/jdk:toolchain_vanilla",
|
|
},
|
|
)
|
|
|
|
genrule(
|
|
name = "gen_version",
|
|
outs = ["version.txt"],
|
|
cmd = ("cat bazel-out/volatile-status.txt bazel-out/stable-status.txt | " +
|
|
"grep STABLE_BUILD_GERRIT_LABEL | cut -d ' ' -f 2 > $@"),
|
|
stamp = 1,
|
|
)
|
|
|
|
genrule(
|
|
name = "LICENSES",
|
|
srcs = ["//Documentation:licenses.txt"],
|
|
outs = ["LICENSES.txt"],
|
|
cmd = "cp $< $@",
|
|
)
|
|
|
|
pkg_war(
|
|
name = "gerrit",
|
|
ui = "polygerrit",
|
|
)
|
|
|
|
pkg_war(
|
|
name = "headless",
|
|
ui = None,
|
|
)
|
|
|
|
pkg_war(
|
|
name = "release",
|
|
context = ["//plugins:core"],
|
|
doc = True,
|
|
)
|
|
|
|
pkg_war(
|
|
name = "withdocs",
|
|
doc = True,
|
|
)
|
|
|
|
API_DEPS = [
|
|
"//java/com/google/gerrit/acceptance:framework_deploy.jar",
|
|
"//java/com/google/gerrit/acceptance:libframework-lib-src.jar",
|
|
"//java/com/google/gerrit/acceptance:framework-javadoc",
|
|
"//java/com/google/gerrit/extensions:extension-api_deploy.jar",
|
|
"//java/com/google/gerrit/extensions:libapi-src.jar",
|
|
"//java/com/google/gerrit/extensions:extension-api-javadoc",
|
|
"//plugins:plugin-api_deploy.jar",
|
|
"//plugins:plugin-api-sources_deploy.jar",
|
|
"//plugins:plugin-api-javadoc",
|
|
]
|
|
|
|
genrule2(
|
|
name = "api",
|
|
testonly = True,
|
|
srcs = API_DEPS,
|
|
outs = ["api.zip"],
|
|
cmd = " && ".join([
|
|
"cp $(SRCS) $$TMP",
|
|
"cd $$TMP",
|
|
"zip -qr $$ROOT/$@ .",
|
|
]),
|
|
)
|