From fa18907d7ffff944b615b5108a16ba2966d720ee Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Wed, 30 Nov 2016 08:52:06 +0100 Subject: [PATCH] Bazel: Reformat build files Reformat the Bazel build files with the buildifier tool [1]. The style is different for Bazel files. Most notably, indentation level is 4 spaces instead of 2, and " is used instead of '. [1] https://github.com/bazelbuild/buildifier Change-Id: I95c0c6f11b6d76572797853b4ebb5cee5ebd3c98 --- BUILD | 54 +- Documentation/BUILD | 121 +- ReleaseNotes/BUILD | 32 +- WORKSPACE | 1135 +++++++++-------- gerrit-acceptance-framework/BUILD | 119 +- gerrit-acceptance-tests/BUILD | 78 +- .../gerrit/acceptance/api/accounts/BUILD | 11 +- .../google/gerrit/acceptance/api/change/BUILD | 11 +- .../google/gerrit/acceptance/api/config/BUILD | 8 +- .../google/gerrit/acceptance/api/group/BUILD | 34 +- .../gerrit/acceptance/api/project/BUILD | 8 +- .../gerrit/acceptance/api/revision/BUILD | 8 +- .../com/google/gerrit/acceptance/edit/BUILD | 16 +- .../com/google/gerrit/acceptance/git/BUILD | 38 +- .../com/google/gerrit/acceptance/pgm/BUILD | 8 +- .../gerrit/acceptance/rest/account/BUILD | 36 +- .../gerrit/acceptance/rest/change/BUILD | 53 +- .../gerrit/acceptance/rest/config/BUILD | 8 +- .../google/gerrit/acceptance/rest/group/BUILD | 9 +- .../gerrit/acceptance/rest/project/BUILD | 56 +- .../gerrit/acceptance/server/change/BUILD | 8 +- .../gerrit/acceptance/server/event/BUILD | 8 +- .../gerrit/acceptance/server/notedb/BUILD | 11 +- .../gerrit/acceptance/server/project/BUILD | 8 +- .../com/google/gerrit/acceptance/ssh/BUILD | 10 +- gerrit-antlr/BUILD | 46 +- gerrit-cache-h2/BUILD | 48 +- gerrit-common/BUILD | 124 +- gerrit-elasticsearch/BUILD | 115 +- gerrit-extension-api/BUILD | 84 +- gerrit-gpg/BUILD | 92 +- gerrit-gwtdebug/BUILD | 30 +- gerrit-gwtexpui/BUILD | 174 +-- gerrit-gwtui-common/BUILD | 91 +- gerrit-gwtui/BUILD | 49 +- gerrit-httpd/BUILD | 129 +- gerrit-launcher/BUILD | 20 +- gerrit-lucene/BUILD | 69 +- gerrit-main/BUILD | 16 +- gerrit-oauth/BUILD | 43 +- gerrit-openid/BUILD | 45 +- gerrit-patch-commonsnet/BUILD | 18 +- gerrit-patch-jgit/BUILD | 101 +- gerrit-pgm/BUILD | 248 ++-- gerrit-plugin-api/BUILD | 166 +-- gerrit-plugin-gwtui/BUILD | 124 +- gerrit-prettify/BUILD | 60 +- gerrit-reviewdb/BUILD | 63 +- gerrit-server/BUILD | 386 +++--- gerrit-server/src/main/prolog/BUILD | 10 +- gerrit-sshd/BUILD | 92 +- gerrit-util-cli/BUILD | 22 +- gerrit-util-http/BUILD | 60 +- gerrit-util-ssl/BUILD | 6 +- gerrit-war/BUILD | 106 +- lib/BUILD | 375 +++--- lib/antlr/BUILD | 43 +- lib/asciidoctor/BUILD | 74 +- lib/auto/BUILD | 28 +- lib/bouncycastle/BUILD | 54 +- lib/codemirror/BUILD | 3 +- lib/commons/BUILD | 82 +- lib/dropwizard/BUILD | 8 +- lib/easymock/BUILD | 33 +- lib/elasticsearch/BUILD | 126 +- lib/fonts/BUILD | 16 +- lib/greenmail/BUILD | 11 +- lib/guice/BUILD | 68 +- lib/gwt/BUILD | 60 +- lib/highlightjs/BUILD | 3 +- lib/httpcomponents/BUILD | 64 +- lib/jackson/BUILD | 22 +- lib/jetty/BUILD | 100 +- lib/jgit/org.eclipse.jgit.archive/BUILD | 10 +- lib/jgit/org.eclipse.jgit.http.server/BUILD | 10 +- lib/jgit/org.eclipse.jgit.junit/BUILD | 10 +- lib/jgit/org.eclipse.jgit/BUILD | 18 +- lib/joda/BUILD | 16 +- lib/js/BUILD | 17 +- lib/jsoup/BUILD | 8 +- lib/log/BUILD | 68 +- lib/lucene/BUILD | 107 +- lib/mail/BUILD | 8 +- lib/mina/BUILD | 18 +- lib/openid/BUILD | 36 +- lib/ow2/BUILD | 42 +- lib/powermock/BUILD | 98 +- lib/prolog/BUILD | 68 +- plugins/BUILD | 22 +- polygerrit-ui/BUILD | 68 +- polygerrit-ui/app/BUILD | 177 +-- tools/BUILD | 8 +- tools/bzl/BUILD | 7 +- tools/eclipse/BUILD | 95 +- tools/maven/BUILD | 53 +- version.bzl | 2 +- 96 files changed, 3377 insertions(+), 3284 deletions(-) diff --git a/BUILD b/BUILD index c914fb781e..b859642bd0 100644 --- a/BUILD +++ b/BUILD @@ -1,26 +1,44 @@ -package(default_visibility = ['//visibility:public']) -load('//tools/bzl:pkg_war.bzl', 'pkg_war') +package(default_visibility = ["//visibility:public"]) + +load("//tools/bzl:pkg_war.bzl", "pkg_war") genrule( - name = 'gen_version', - stamp = 1, - cmd = ("cat bazel-out/volatile-status.txt bazel-out/stable-status.txt | " + - "grep STABLE_BUILD_GERRIT_LABEL | cut -d ' ' -f 2 > $@"), - outs = ['version.txt'], - visibility = ['//visibility:public'], + 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, + visibility = ["//visibility:public"], ) genrule( - name = "LICENSES", - srcs = ["//Documentation:licenses.txt"], - cmd = "cp $< $@", - outs = ["LICENSES.txt"], - visibility = ['//visibility:public'], + name = "LICENSES", + srcs = ["//Documentation:licenses.txt"], + outs = ["LICENSES.txt"], + cmd = "cp $< $@", + visibility = ["//visibility:public"], ) -pkg_war(name = 'gerrit') -pkg_war(name = 'headless', ui = None) -pkg_war(name = "polygerrit", ui = "polygerrit") -pkg_war(name = 'release', ui = 'ui_optdbg_r', context = ['//plugins:core'], doc = True) -pkg_war(name = 'withdocs', doc = True) +pkg_war(name = "gerrit") +pkg_war( + name = "headless", + ui = None, +) + +pkg_war( + name = "polygerrit", + ui = "polygerrit", +) + +pkg_war( + name = "release", + context = ["//plugins:core"], + doc = True, + ui = "ui_optdbg_r", +) + +pkg_war( + name = "withdocs", + doc = True, +) diff --git a/Documentation/BUILD b/Documentation/BUILD index 4f5ed5ef95..d9c123da80 100644 --- a/Documentation/BUILD +++ b/Documentation/BUILD @@ -1,4 +1,4 @@ -package(default_visibility = ['//visibility:public']) +package(default_visibility = ["//visibility:public"]) load("//tools/bzl:asciidoc.bzl", "documentation_attributes") load("//tools/bzl:asciidoc.bzl", "genasciidoc") @@ -6,96 +6,97 @@ load("//tools/bzl:asciidoc.bzl", "genasciidoc_zip") load("//tools/bzl:license.bzl", "license_map") exports_files([ - "replace_macros.py", + "replace_macros.py", ]) filegroup( - name = "prettify_files", - srcs = [ - ":prettify.min.css", - ":prettify.min.js", - ], + name = "prettify_files", + srcs = [ + ":prettify.min.css", + ":prettify.min.js", + ], ) genrule( - name = "prettify_min_css", - srcs = ["//gerrit-prettify:src/main/resources/com/google/gerrit/prettify/client/prettify.css"], - cmd = "cp $< $@", - outs = ["prettify.min.css"], + name = "prettify_min_css", + srcs = ["//gerrit-prettify:src/main/resources/com/google/gerrit/prettify/client/prettify.css"], + outs = ["prettify.min.css"], + cmd = "cp $< $@", ) genrule( - name = "prettify_min_js", - srcs = ["//gerrit-prettify:src/main/resources/com/google/gerrit/prettify/client/prettify.js"], - cmd = "cp $< $@", - outs = ["prettify.min.js"], + name = "prettify_min_js", + srcs = ["//gerrit-prettify:src/main/resources/com/google/gerrit/prettify/client/prettify.js"], + outs = ["prettify.min.js"], + cmd = "cp $< $@", ) filegroup( - name = "resources", - srcs = glob([ - "images/*.jpg", - "images/*.png", - ]) + [ - ":prettify_files", - "//:LICENSES.txt", - ], - visibility = ['//visibility:public'], + name = "resources", + srcs = glob([ + "images/*.jpg", + "images/*.png", + ]) + [ + ":prettify_files", + "//:LICENSES.txt", + ], + visibility = ["//visibility:public"], ) license_map( - name = "licenses", - targets = [ - "//gerrit-pgm:pgm", - "//gerrit-gwtui:ui_module", - "//polygerrit-ui/app:polygerrit_ui", - ], - opts = ["--asciidoctor"], - visibility = ['//visibility:public'], + name = "licenses", + opts = ["--asciidoctor"], + targets = [ + "//gerrit-pgm:pgm", + "//gerrit-gwtui:ui_module", + "//polygerrit-ui/app:polygerrit_ui", + ], + visibility = ["//visibility:public"], ) DOC_DIR = "Documentation" + SRCS = glob(["*.txt"]) + [":licenses.txt"] genrule( - name = "index", - cmd = "$(location //lib/asciidoctor:doc_indexer) " + - "-o $(OUTS) " + - '--prefix "%s/" ' % DOC_DIR + - '--in-ext ".txt" ' + - '--out-ext ".html" ' + - "$(SRCS)", - tools = ["//lib/asciidoctor:doc_indexer"], - srcs = SRCS, - outs = ["index.jar"], + name = "index", + srcs = SRCS, + outs = ["index.jar"], + cmd = "$(location //lib/asciidoctor:doc_indexer) " + + "-o $(OUTS) " + + "--prefix \"%s/\" " % DOC_DIR + + "--in-ext \".txt\" " + + "--out-ext \".html\" " + + "$(SRCS)", + tools = ["//lib/asciidoctor:doc_indexer"], ) # For the same srcs, we can have multiple genasciidoc_zip rules, but only one # genasciidoc rule. Because multiple genasciidoc rules will have conflicting # output files. genasciidoc( - name = "Documentation", - srcs = SRCS, - attributes = documentation_attributes(), - backend = "html5", - visibility = ["//visibility:public"], + name = "Documentation", + srcs = SRCS, + attributes = documentation_attributes(), + backend = "html5", + visibility = ["//visibility:public"], ) genasciidoc_zip( - name = "html", - srcs = SRCS, - attributes = documentation_attributes(), - backend = "html5", - directory = DOC_DIR, - visibility = ["//visibility:public"], + name = "html", + srcs = SRCS, + attributes = documentation_attributes(), + backend = "html5", + directory = DOC_DIR, + visibility = ["//visibility:public"], ) genasciidoc_zip( - name = "searchfree", - srcs = SRCS, - attributes = documentation_attributes(), - backend = "html5", - directory = DOC_DIR, - searchbox = False, - visibility = ["//visibility:public"], + name = "searchfree", + srcs = SRCS, + attributes = documentation_attributes(), + backend = "html5", + directory = DOC_DIR, + searchbox = False, + visibility = ["//visibility:public"], ) diff --git a/ReleaseNotes/BUILD b/ReleaseNotes/BUILD index 9bf572e089..b0c8a13c81 100644 --- a/ReleaseNotes/BUILD +++ b/ReleaseNotes/BUILD @@ -2,26 +2,24 @@ load("//tools/bzl:asciidoc.bzl", "release_notes_attributes") load("//tools/bzl:asciidoc.bzl", "genasciidoc") load("//tools/bzl:asciidoc.bzl", "genasciidoc_zip") - -SRCS = glob(['*.txt']) - +SRCS = glob(["*.txt"]) genasciidoc( - name = 'ReleaseNotes', - srcs = SRCS, - attributes = release_notes_attributes(), - backend = 'html5', - searchbox = False, - resources = False, - visibility = ["//visibility:public"], + name = "ReleaseNotes", + srcs = SRCS, + attributes = release_notes_attributes(), + backend = "html5", + resources = False, + searchbox = False, + visibility = ["//visibility:public"], ) genasciidoc_zip( - name = "html", - srcs = SRCS, - attributes = release_notes_attributes(), - backend = 'html5', - searchbox = False, - resources = False, - visibility = ["//visibility:public"], + name = "html", + srcs = SRCS, + attributes = release_notes_attributes(), + backend = "html5", + resources = False, + searchbox = False, + visibility = ["//visibility:public"], ) diff --git a/WORKSPACE b/WORKSPACE index 251b4f5112..9224464292 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,1106 +1,1107 @@ -workspace(name="gerrit") +workspace(name = "gerrit") + load("//tools/bzl:maven_jar.bzl", "maven_jar", "GERRIT", "MAVEN_LOCAL") -ANTLR_VERS = '3.5.2' +ANTLR_VERS = "3.5.2" maven_jar( - name = 'java_runtime', - artifact = 'org.antlr:antlr-runtime:' + ANTLR_VERS, - sha1 = 'cd9cd41361c155f3af0f653009dcecb08d8b4afd', + name = "java_runtime", + artifact = "org.antlr:antlr-runtime:" + ANTLR_VERS, + sha1 = "cd9cd41361c155f3af0f653009dcecb08d8b4afd", ) maven_jar( - name = 'stringtemplate', - artifact = 'org.antlr:stringtemplate:4.0.2', - sha1 = 'e28e09e2d44d60506a7bcb004d6c23ff35c6ac08', + name = "stringtemplate", + artifact = "org.antlr:stringtemplate:4.0.2", + sha1 = "e28e09e2d44d60506a7bcb004d6c23ff35c6ac08", ) maven_jar( - name = 'org_antlr', - artifact = 'org.antlr:antlr:' + ANTLR_VERS, - sha1 = 'c4a65c950bfc3e7d04309c515b2177c00baf7764', + name = "org_antlr", + artifact = "org.antlr:antlr:" + ANTLR_VERS, + sha1 = "c4a65c950bfc3e7d04309c515b2177c00baf7764", ) maven_jar( - name = 'antlr27', - artifact = 'antlr:antlr:2.7.7', - sha1 = '83cd2cd674a217ade95a4bb83a8a14f351f48bd0', - attach_source = False, + name = "antlr27", + artifact = "antlr:antlr:2.7.7", + attach_source = False, + sha1 = "83cd2cd674a217ade95a4bb83a8a14f351f48bd0", ) -GUICE_VERS = '4.1.0' +GUICE_VERS = "4.1.0" maven_jar( - name = 'guice_library', - artifact = 'com.google.inject:guice:' + GUICE_VERS, - sha1 = 'eeb69005da379a10071aa4948c48d89250febb07', + name = "guice_library", + artifact = "com.google.inject:guice:" + GUICE_VERS, + sha1 = "eeb69005da379a10071aa4948c48d89250febb07", ) maven_jar( - name = 'guice_assistedinject', - artifact = 'com.google.inject.extensions:guice-assistedinject:' + GUICE_VERS, - sha1 = 'af799dd7e23e6fe8c988da12314582072b07edcb', + name = "guice_assistedinject", + artifact = "com.google.inject.extensions:guice-assistedinject:" + GUICE_VERS, + sha1 = "af799dd7e23e6fe8c988da12314582072b07edcb", ) maven_jar( - name = 'guice_servlet', - artifact = 'com.google.inject.extensions:guice-servlet:' + GUICE_VERS, - sha1 = '90ac2db772d9b85e2b05417b74f7464bcc061dcb', + name = "guice_servlet", + artifact = "com.google.inject.extensions:guice-servlet:" + GUICE_VERS, + sha1 = "90ac2db772d9b85e2b05417b74f7464bcc061dcb", ) maven_jar( - name = 'multibindings', - artifact = 'com.google.inject.extensions:guice-multibindings:' + GUICE_VERS, - sha1 = '3b27257997ac51b0f8d19676f1ea170427e86d51', + name = "multibindings", + artifact = "com.google.inject.extensions:guice-multibindings:" + GUICE_VERS, + sha1 = "3b27257997ac51b0f8d19676f1ea170427e86d51", ) maven_jar( - name = 'aopalliance', - artifact = 'aopalliance:aopalliance:1.0', - sha1 = '0235ba8b489512805ac13a8f9ea77a1ca5ebe3e8', + name = "aopalliance", + artifact = "aopalliance:aopalliance:1.0", + sha1 = "0235ba8b489512805ac13a8f9ea77a1ca5ebe3e8", ) maven_jar( - name = 'javax_inject', - artifact = 'javax.inject:javax.inject:1', - sha1 = '6975da39a7040257bd51d21a231b76c915872d38', + name = "javax_inject", + artifact = "javax.inject:javax.inject:1", + sha1 = "6975da39a7040257bd51d21a231b76c915872d38", ) maven_jar( - name = 'servlet_api_3_1', - artifact = 'org.apache.tomcat:tomcat-servlet-api:8.0.24', - sha1 = '5d9e2e895e3111622720157d0aa540066d5fce3a', + name = "servlet_api_3_1", + artifact = "org.apache.tomcat:tomcat-servlet-api:8.0.24", + sha1 = "5d9e2e895e3111622720157d0aa540066d5fce3a", ) -GWT_VERS = '2.8.0' +GWT_VERS = "2.8.0" maven_jar( - name = 'user', - artifact = 'com.google.gwt:gwt-user:' + GWT_VERS, - sha1 = '518579870499e15531f454f35dca0772d7fa31f7', + name = "user", + artifact = "com.google.gwt:gwt-user:" + GWT_VERS, + sha1 = "518579870499e15531f454f35dca0772d7fa31f7", ) maven_jar( - name = 'dev', - artifact = 'com.google.gwt:gwt-dev:' + GWT_VERS, - sha1 = 'f160a61272c5ebe805cd2d3d3256ed3ecf14893f', + name = "dev", + artifact = "com.google.gwt:gwt-dev:" + GWT_VERS, + sha1 = "f160a61272c5ebe805cd2d3d3256ed3ecf14893f", ) maven_jar( - name = 'javax_validation', - artifact = 'javax.validation:validation-api:1.0.0.GA', - sha1 = 'b6bd7f9d78f6fdaa3c37dae18a4bd298915f328e', - src_sha1 = '7a561191db2203550fbfa40d534d4997624cd369', + name = "javax_validation", + artifact = "javax.validation:validation-api:1.0.0.GA", + sha1 = "b6bd7f9d78f6fdaa3c37dae18a4bd298915f328e", + src_sha1 = "7a561191db2203550fbfa40d534d4997624cd369", ) maven_jar( - name = 'jsinterop_annotations', - artifact = 'com.google.jsinterop:jsinterop-annotations:1.0.0', - sha1 = '23c3a3c060ffe4817e67673cc8294e154b0a4a95', - src_sha1 = '5d7c478efbfccc191430d7c118d7bd2635e43750', + name = "jsinterop_annotations", + artifact = "com.google.jsinterop:jsinterop-annotations:1.0.0", + sha1 = "23c3a3c060ffe4817e67673cc8294e154b0a4a95", + src_sha1 = "5d7c478efbfccc191430d7c118d7bd2635e43750", ) maven_jar( - name = 'ant', - artifact = 'ant:ant:1.6.5', - sha1 = '7d18faf23df1a5c3a43613952e0e8a182664564b', - attach_source = False, + name = "ant", + artifact = "ant:ant:1.6.5", + attach_source = False, + sha1 = "7d18faf23df1a5c3a43613952e0e8a182664564b", ) maven_jar( - name = 'colt', - artifact = 'colt:colt:1.2.0', - sha1 = '0abc984f3adc760684d49e0f11ddf167ba516d4f', - attach_source = False, + name = "colt", + artifact = "colt:colt:1.2.0", + attach_source = False, + sha1 = "0abc984f3adc760684d49e0f11ddf167ba516d4f", ) maven_jar( - name = 'tapestry', - artifact = 'tapestry:tapestry:4.0.2', - sha1 = 'e855a807425d522e958cbce8697f21e9d679b1f7', - attach_source = False, + name = "tapestry", + artifact = "tapestry:tapestry:4.0.2", + attach_source = False, + sha1 = "e855a807425d522e958cbce8697f21e9d679b1f7", ) maven_jar( - name = 'w3c_css_sac', - artifact = 'org.w3c.css:sac:1.3', - sha1 = 'cdb2dcb4e22b83d6b32b93095f644c3462739e82', + name = "w3c_css_sac", + artifact = "org.w3c.css:sac:1.3", + sha1 = "cdb2dcb4e22b83d6b32b93095f644c3462739e82", ) -load('//lib/jgit:jgit.bzl', 'JGIT_VERS') +load("//lib/jgit:jgit.bzl", "JGIT_VERS") maven_jar( - name = 'jgit', - artifact = 'org.eclipse.jgit:org.eclipse.jgit:' + JGIT_VERS, - sha1 = '34315f71bb9becf6ff75947a9c43c415b929ec21', - src_sha1 = '8320c18472870904eb7fb860af353fea818d07e4', - repository = GERRIT, - unsign = True, + name = "jgit", + artifact = "org.eclipse.jgit:org.eclipse.jgit:" + JGIT_VERS, + repository = GERRIT, + sha1 = "34315f71bb9becf6ff75947a9c43c415b929ec21", + src_sha1 = "8320c18472870904eb7fb860af353fea818d07e4", + unsign = True, ) maven_jar( - name = 'jgit_servlet', - artifact = 'org.eclipse.jgit:org.eclipse.jgit.http.server:' + JGIT_VERS, - sha1 = '927990025d2970995dbb58f03763eeb776fec8fd', - repository = GERRIT, - unsign = True, + name = "jgit_servlet", + artifact = "org.eclipse.jgit:org.eclipse.jgit.http.server:" + JGIT_VERS, + repository = GERRIT, + sha1 = "927990025d2970995dbb58f03763eeb776fec8fd", + unsign = True, ) maven_jar( - name = 'javaewah', - artifact = 'com.googlecode.javaewah:JavaEWAH:1.1.6', - sha1 = '94ad16d728b374d65bd897625f3fbb3da223a2b6', - attach_source = False, + name = "javaewah", + artifact = "com.googlecode.javaewah:JavaEWAH:1.1.6", + attach_source = False, + sha1 = "94ad16d728b374d65bd897625f3fbb3da223a2b6", ) maven_jar( - name = 'jgit_archive', - artifact = 'org.eclipse.jgit:org.eclipse.jgit.archive:' + JGIT_VERS, - sha1 = '4a5d058915400c1ef497bfeeb5e87d235213e273', - repository = GERRIT, + name = "jgit_archive", + artifact = "org.eclipse.jgit:org.eclipse.jgit.archive:" + JGIT_VERS, + repository = GERRIT, + sha1 = "4a5d058915400c1ef497bfeeb5e87d235213e273", ) maven_jar( - name = 'jgit_junit', - artifact = 'org.eclipse.jgit:org.eclipse.jgit.junit:' + JGIT_VERS, - sha1 = '8e3cb9b1f632fdfea76b04c286a2c0d8d260ebce', - repository = GERRIT, - unsign = True, + name = "jgit_junit", + artifact = "org.eclipse.jgit:org.eclipse.jgit.junit:" + JGIT_VERS, + repository = GERRIT, + sha1 = "8e3cb9b1f632fdfea76b04c286a2c0d8d260ebce", + unsign = True, ) maven_jar( - name = 'gwtjsonrpc', - artifact = 'com.google.gerrit:gwtjsonrpc:1.11', - sha1 = '0990e7eec9eec3a15661edcf9232acbac4aeacec', - src_sha1 = 'a682afc46284fb58197a173cb5818770a1e7834a', + name = "gwtjsonrpc", + artifact = "com.google.gerrit:gwtjsonrpc:1.11", + sha1 = "0990e7eec9eec3a15661edcf9232acbac4aeacec", + src_sha1 = "a682afc46284fb58197a173cb5818770a1e7834a", ) maven_jar( - name = 'gson', - artifact = 'com.google.code.gson:gson:2.7', - sha1 = '751f548c85fa49f330cecbb1875893f971b33c4e', + name = "gson", + artifact = "com.google.code.gson:gson:2.7", + sha1 = "751f548c85fa49f330cecbb1875893f971b33c4e", ) maven_jar( - name = 'gwtorm_client', - artifact = 'com.google.gerrit:gwtorm:1.16', - sha1 = '3e41b6d7bb352fa0539ce23b9bce97cf8c26c3bf', - src_sha1 = 'f45b7bacc79a0e5a7f6cf799a2dba23cc5bca19b', + name = "gwtorm_client", + artifact = "com.google.gerrit:gwtorm:1.16", + sha1 = "3e41b6d7bb352fa0539ce23b9bce97cf8c26c3bf", + src_sha1 = "f45b7bacc79a0e5a7f6cf799a2dba23cc5bca19b", ) maven_jar( - name = 'protobuf', - artifact = 'com.google.protobuf:protobuf-java:2.5.0', - sha1 = 'a10732c76bfacdbd633a7eb0f7968b1059a65dfa', + name = "protobuf", + artifact = "com.google.protobuf:protobuf-java:2.5.0", + sha1 = "a10732c76bfacdbd633a7eb0f7968b1059a65dfa", ) maven_jar( - name = 'joda_time', - artifact = 'joda-time:joda-time:2.9.4', - sha1 = '1c295b462f16702ebe720bbb08f62e1ba80da41b', + name = "joda_time", + artifact = "joda-time:joda-time:2.9.4", + sha1 = "1c295b462f16702ebe720bbb08f62e1ba80da41b", ) maven_jar( - name = 'joda_convert', - artifact = 'org.joda:joda-convert:1.8.1', - sha1 = '675642ac208e0b741bc9118dcbcae44c271b992a', + name = "joda_convert", + artifact = "org.joda:joda-convert:1.8.1", + sha1 = "675642ac208e0b741bc9118dcbcae44c271b992a", ) -load('//lib:guava.bzl', 'GUAVA_VERSION', 'GUAVA_BIN_SHA1') +load("//lib:guava.bzl", "GUAVA_VERSION", "GUAVA_BIN_SHA1") maven_jar( - name = 'guava', - artifact = 'com.google.guava:guava:' + GUAVA_VERSION, - sha1 = GUAVA_BIN_SHA1, + name = "guava", + artifact = "com.google.guava:guava:" + GUAVA_VERSION, + sha1 = GUAVA_BIN_SHA1, ) maven_jar( - name = 'velocity', - artifact = 'org.apache.velocity:velocity:1.7', - sha1 = '2ceb567b8f3f21118ecdec129fe1271dbc09aa7a', + name = "velocity", + artifact = "org.apache.velocity:velocity:1.7", + sha1 = "2ceb567b8f3f21118ecdec129fe1271dbc09aa7a", ) maven_jar( - name = 'jsch', - artifact = 'com.jcraft:jsch:0.1.54', - sha1 = 'da3584329a263616e277e15462b387addd1b208d', + name = "jsch", + artifact = "com.jcraft:jsch:0.1.54", + sha1 = "da3584329a263616e277e15462b387addd1b208d", ) maven_jar( - name = 'juniversalchardet', - artifact = 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3', - sha1 = 'cd49678784c46aa8789c060538e0154013bb421b', + name = "juniversalchardet", + artifact = "com.googlecode.juniversalchardet:juniversalchardet:1.0.3", + sha1 = "cd49678784c46aa8789c060538e0154013bb421b", ) -SLF4J_VERS = '1.7.7' +SLF4J_VERS = "1.7.7" maven_jar( - name = 'log_api', - artifact = 'org.slf4j:slf4j-api:' + SLF4J_VERS, - sha1 = '2b8019b6249bb05d81d3a3094e468753e2b21311', + name = "log_api", + artifact = "org.slf4j:slf4j-api:" + SLF4J_VERS, + sha1 = "2b8019b6249bb05d81d3a3094e468753e2b21311", ) maven_jar( - name = 'log_nop', - artifact = 'org.slf4j:slf4j-nop:' + SLF4J_VERS, - sha1 = '6cca9a3b999ff28b7a35ca762b3197cd7e4c2ad1', + name = "log_nop", + artifact = "org.slf4j:slf4j-nop:" + SLF4J_VERS, + sha1 = "6cca9a3b999ff28b7a35ca762b3197cd7e4c2ad1", ) maven_jar( - name = 'impl_log4j', - artifact = 'org.slf4j:slf4j-log4j12:' + SLF4J_VERS, - sha1 = '58f588119ffd1702c77ccab6acb54bfb41bed8bd', + name = "impl_log4j", + artifact = "org.slf4j:slf4j-log4j12:" + SLF4J_VERS, + sha1 = "58f588119ffd1702c77ccab6acb54bfb41bed8bd", ) maven_jar( - name = 'jcl_over_slf4j', - artifact = 'org.slf4j:jcl-over-slf4j:' + SLF4J_VERS, - sha1 = '56003dcd0a31deea6391b9e2ef2f2dc90b205a92', + name = "jcl_over_slf4j", + artifact = "org.slf4j:jcl-over-slf4j:" + SLF4J_VERS, + sha1 = "56003dcd0a31deea6391b9e2ef2f2dc90b205a92", ) maven_jar( - name = 'log4j', - artifact = 'log4j:log4j:1.2.17', - sha1 = '5af35056b4d257e4b64b9e8069c0746e8b08629f', + name = "log4j", + artifact = "log4j:log4j:1.2.17", + sha1 = "5af35056b4d257e4b64b9e8069c0746e8b08629f", ) maven_jar( - name = 'jsonevent_layout', - artifact = 'net.logstash.log4j:jsonevent-layout:1.7', - sha1 = '507713504f0ddb75ba512f62763519c43cf46fde', + name = "jsonevent_layout", + artifact = "net.logstash.log4j:jsonevent-layout:1.7", + sha1 = "507713504f0ddb75ba512f62763519c43cf46fde", ) maven_jar( - name = 'json_smart', - artifact = 'net.minidev:json-smart:1.1.1', - sha1 = '24a2f903d25e004de30ac602c5b47f2d4e420a59', + name = "json_smart", + artifact = "net.minidev:json-smart:1.1.1", + sha1 = "24a2f903d25e004de30ac602c5b47f2d4e420a59", ) maven_jar( - name = 'args4j', - artifact = 'args4j:args4j:2.0.26', - sha1 = '01ebb18ebb3b379a74207d5af4ea7c8338ebd78b', + name = "args4j", + artifact = "args4j:args4j:2.0.26", + sha1 = "01ebb18ebb3b379a74207d5af4ea7c8338ebd78b", ) maven_jar( - name = 'commons_codec', - artifact = 'commons-codec:commons-codec:1.4', - sha1 = '4216af16d38465bbab0f3dff8efa14204f7a399a', + name = "commons_codec", + artifact = "commons-codec:commons-codec:1.4", + sha1 = "4216af16d38465bbab0f3dff8efa14204f7a399a", ) maven_jar( - name = 'commons_collections', - artifact = 'commons-collections:commons-collections:3.2.2', - sha1 = '8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5', + name = "commons_collections", + artifact = "commons-collections:commons-collections:3.2.2", + sha1 = "8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5", ) maven_jar( - name = 'commons_compress', - artifact = 'org.apache.commons:commons-compress:1.12', - sha1 = '84caa68576e345eb5e7ae61a0e5a9229eb100d7b', + name = "commons_compress", + artifact = "org.apache.commons:commons-compress:1.12", + sha1 = "84caa68576e345eb5e7ae61a0e5a9229eb100d7b", ) maven_jar( - name = 'commons_lang', - artifact = 'commons-lang:commons-lang:2.6', - sha1 = '0ce1edb914c94ebc388f086c6827e8bdeec71ac2', + name = "commons_lang", + artifact = "commons-lang:commons-lang:2.6", + sha1 = "0ce1edb914c94ebc388f086c6827e8bdeec71ac2", ) maven_jar( - name = 'commons_lang3', - artifact = 'org.apache.commons:commons-lang3:3.3.2', - sha1 = '90a3822c38ec8c996e84c16a3477ef632cbc87a3', + name = "commons_lang3", + artifact = "org.apache.commons:commons-lang3:3.3.2", + sha1 = "90a3822c38ec8c996e84c16a3477ef632cbc87a3", ) maven_jar( - name = 'commons_dbcp', - artifact = 'commons-dbcp:commons-dbcp:1.4', - sha1 = '30be73c965cc990b153a100aaaaafcf239f82d39', + name = "commons_dbcp", + artifact = "commons-dbcp:commons-dbcp:1.4", + sha1 = "30be73c965cc990b153a100aaaaafcf239f82d39", ) maven_jar( - name = 'commons_pool', - artifact = 'commons-pool:commons-pool:1.5.5', - sha1 = '7d8ffbdc47aa0c5a8afe5dc2aaf512f369f1d19b', + name = "commons_pool", + artifact = "commons-pool:commons-pool:1.5.5", + sha1 = "7d8ffbdc47aa0c5a8afe5dc2aaf512f369f1d19b", ) maven_jar( - name = 'commons_net', - artifact = 'commons-net:commons-net:3.5', - sha1 = '342fc284019f590e1308056990fdb24a08f06318', + name = "commons_net", + artifact = "commons-net:commons-net:3.5", + sha1 = "342fc284019f590e1308056990fdb24a08f06318", ) maven_jar( - name = 'commons_oro', - artifact = 'oro:oro:2.0.8', - sha1 = '5592374f834645c4ae250f4c9fbb314c9369d698', + name = "commons_oro", + artifact = "oro:oro:2.0.8", + sha1 = "5592374f834645c4ae250f4c9fbb314c9369d698", ) maven_jar( - name = 'commons_validator', - artifact = 'commons-validator:commons-validator:1.5.1', - sha1 = '86d05a46e8f064b300657f751b5a98c62807e2a0', + name = "commons_validator", + artifact = "commons-validator:commons-validator:1.5.1", + sha1 = "86d05a46e8f064b300657f751b5a98c62807e2a0", ) maven_jar( - name = 'automaton', - artifact = 'dk.brics.automaton:automaton:1.11-8', - sha1 = '6ebfa65eb431ff4b715a23be7a750cbc4cc96d0f', + name = "automaton", + artifact = "dk.brics.automaton:automaton:1.11-8", + sha1 = "6ebfa65eb431ff4b715a23be7a750cbc4cc96d0f", ) maven_jar( - name = 'pegdown', - artifact = 'org.pegdown:pegdown:1.4.2', - sha1 = 'd96db502ed832df867ff5d918f05b51ba3879ea7', + name = "pegdown", + artifact = "org.pegdown:pegdown:1.4.2", + sha1 = "d96db502ed832df867ff5d918f05b51ba3879ea7", ) maven_jar( - name = 'grappa', - artifact = 'com.github.parboiled1:grappa:1.0.4', - sha1 = 'ad4b44b9c305dad7aa1e680d4b5c8eec9c4fd6f5', + name = "grappa", + artifact = "com.github.parboiled1:grappa:1.0.4", + sha1 = "ad4b44b9c305dad7aa1e680d4b5c8eec9c4fd6f5", ) maven_jar( - name = 'jitescript', - artifact = 'me.qmx.jitescript:jitescript:0.4.0', - sha1 = '2e35862b0435c1b027a21f3d6eecbe50e6e08d54', + name = "jitescript", + artifact = "me.qmx.jitescript:jitescript:0.4.0", + sha1 = "2e35862b0435c1b027a21f3d6eecbe50e6e08d54", ) -GREENMAIL_VERS = '1.5.2' +GREENMAIL_VERS = "1.5.2" maven_jar( - name = 'greenmail', - artifact = 'com.icegreen:greenmail:' + GREENMAIL_VERS, - sha1 = '6b4862a09f8642da58c109117b24ccc19a4a6d39', + name = "greenmail", + artifact = "com.icegreen:greenmail:" + GREENMAIL_VERS, + sha1 = "6b4862a09f8642da58c109117b24ccc19a4a6d39", ) -MAIL_VERS = '1.5.6' +MAIL_VERS = "1.5.6" maven_jar( - name = 'mail', - artifact = 'com.sun.mail:javax.mail:' + MAIL_VERS, - sha1 = 'ab5daef2f881c42c8e280cbe918ec4d7fdfd7efe', + name = "mail", + artifact = "com.sun.mail:javax.mail:" + MAIL_VERS, + sha1 = "ab5daef2f881c42c8e280cbe918ec4d7fdfd7efe", ) -MIME4J_VERS = '0.8.0' +MIME4J_VERS = "0.8.0" maven_jar( - name = 'mime4j_core', - artifact = 'org.apache.james:apache-mime4j-core:' + MIME4J_VERS, - sha1 = 'd54f45fca44a2f210569656b4ca3574b42911c95', + name = "mime4j_core", + artifact = "org.apache.james:apache-mime4j-core:" + MIME4J_VERS, + sha1 = "d54f45fca44a2f210569656b4ca3574b42911c95", ) maven_jar( - name = 'mime4j_dom', - artifact = 'org.apache.james:apache-mime4j-dom:' + MIME4J_VERS, - sha1 = '6720c93d14225c3e12c4a69768a0370c80e376a3', + name = "mime4j_dom", + artifact = "org.apache.james:apache-mime4j-dom:" + MIME4J_VERS, + sha1 = "6720c93d14225c3e12c4a69768a0370c80e376a3", ) maven_jar( - name = 'jsoup', - artifact = 'org.jsoup:jsoup:1.9.2', - sha1 = '5e3bda828a80c7a21dfbe2308d1755759c2fd7b4', + name = "jsoup", + artifact = "org.jsoup:jsoup:1.9.2", + sha1 = "5e3bda828a80c7a21dfbe2308d1755759c2fd7b4", ) -OW2_VERS = '5.1' +OW2_VERS = "5.1" maven_jar( - name = 'ow2_asm', - artifact = 'org.ow2.asm:asm:' + OW2_VERS, - sha1 = '5ef31c4fe953b1fd00b8a88fa1d6820e8785bb45', + name = "ow2_asm", + artifact = "org.ow2.asm:asm:" + OW2_VERS, + sha1 = "5ef31c4fe953b1fd00b8a88fa1d6820e8785bb45", ) maven_jar( - name = 'ow2_asm_analysis', - artifact = 'org.ow2.asm:asm-analysis:' + OW2_VERS, - sha1 = '6d1bf8989fc7901f868bee3863c44f21aa63d110', + name = "ow2_asm_analysis", + artifact = "org.ow2.asm:asm-analysis:" + OW2_VERS, + sha1 = "6d1bf8989fc7901f868bee3863c44f21aa63d110", ) maven_jar( - name = 'ow2_asm_commons', - artifact = 'org.ow2.asm:asm-commons:' + OW2_VERS, - sha1 = '25d8a575034dd9cfcb375a39b5334f0ba9c8474e', + name = "ow2_asm_commons", + artifact = "org.ow2.asm:asm-commons:" + OW2_VERS, + sha1 = "25d8a575034dd9cfcb375a39b5334f0ba9c8474e", ) maven_jar( - name = 'ow2_asm_tree', - artifact = 'org.ow2.asm:asm-tree:' + OW2_VERS, - sha1 = '87b38c12a0ea645791ead9d3e74ae5268d1d6c34', + name = "ow2_asm_tree", + artifact = "org.ow2.asm:asm-tree:" + OW2_VERS, + sha1 = "87b38c12a0ea645791ead9d3e74ae5268d1d6c34", ) maven_jar( - name = 'ow2_asm_util', - artifact = 'org.ow2.asm:asm-util:' + OW2_VERS, - sha1 = 'b60e33a6bd0d71831e0c249816d01e6c1dd90a47', + name = "ow2_asm_util", + artifact = "org.ow2.asm:asm-util:" + OW2_VERS, + sha1 = "b60e33a6bd0d71831e0c249816d01e6c1dd90a47", ) maven_jar( - name = 'auto_value', - artifact = 'com.google.auto.value:auto-value:1.4-rc1', - sha1 = '9347939002003a7a3c3af48271fc2c18734528a4', + name = "auto_value", + artifact = "com.google.auto.value:auto-value:1.4-rc1", + sha1 = "9347939002003a7a3c3af48271fc2c18734528a4", ) maven_jar( - name = 'tukaani_xz', - artifact = 'org.tukaani:xz:1.4', - sha1 = '18a9a2ce6abf32ea1b5fd31dae5210ad93f4e5e3', + name = "tukaani_xz", + artifact = "org.tukaani:xz:1.4", + sha1 = "18a9a2ce6abf32ea1b5fd31dae5210ad93f4e5e3", ) -LUCENE_VERS = '5.5.2' +LUCENE_VERS = "5.5.2" maven_jar( - name = 'lucene_core', - artifact = 'org.apache.lucene:lucene-core:' + LUCENE_VERS, - sha1 = 'de5e5c3161ea01e89f2a09a14391f9b7ed66cdbb', + name = "lucene_core", + artifact = "org.apache.lucene:lucene-core:" + LUCENE_VERS, + sha1 = "de5e5c3161ea01e89f2a09a14391f9b7ed66cdbb", ) maven_jar( - name = 'lucene_analyzers_common', - artifact = 'org.apache.lucene:lucene-analyzers-common:' + LUCENE_VERS, - sha1 = 'f0bc3114a6b43f8e64a33c471d5b9e8ddc51564d', + name = "lucene_analyzers_common", + artifact = "org.apache.lucene:lucene-analyzers-common:" + LUCENE_VERS, + sha1 = "f0bc3114a6b43f8e64a33c471d5b9e8ddc51564d", ) maven_jar( - name = 'lucene_codecs', - artifact = 'org.apache.lucene:lucene-codecs:' + LUCENE_VERS, - sha1 = 'e01fe463d9490bb1b4a6a168e771f7b7255a50b1', + name = "lucene_codecs", + artifact = "org.apache.lucene:lucene-codecs:" + LUCENE_VERS, + sha1 = "e01fe463d9490bb1b4a6a168e771f7b7255a50b1", ) maven_jar( - name = 'backward_codecs', - artifact = 'org.apache.lucene:lucene-backward-codecs:' + LUCENE_VERS, - sha1 = 'c5cfcd7a8cf48a0144b61fb991c8e50a0bf868d5', + name = "backward_codecs", + artifact = "org.apache.lucene:lucene-backward-codecs:" + LUCENE_VERS, + sha1 = "c5cfcd7a8cf48a0144b61fb991c8e50a0bf868d5", ) maven_jar( - name = 'lucene_misc', - artifact = 'org.apache.lucene:lucene-misc:' + LUCENE_VERS, - sha1 = '37bbe5a2fb429499dfbe75d750d1778881fff45d', + name = "lucene_misc", + artifact = "org.apache.lucene:lucene-misc:" + LUCENE_VERS, + sha1 = "37bbe5a2fb429499dfbe75d750d1778881fff45d", ) maven_jar( - name = 'lucene_queryparser', - artifact = 'org.apache.lucene:lucene-queryparser:' + LUCENE_VERS, - sha1 = '8ac921563e744463605284c6d9d2d95e1be5b87c', + name = "lucene_queryparser", + artifact = "org.apache.lucene:lucene-queryparser:" + LUCENE_VERS, + sha1 = "8ac921563e744463605284c6d9d2d95e1be5b87c", ) - maven_jar( - name = 'lucene_highlighter', - artifact = 'org.apache.lucene:lucene-highlighter:' + LUCENE_VERS, - sha1 = 'd127ac514e9df965ab0b57d92bbe0c68d3d145b8', + name = "lucene_highlighter", + artifact = "org.apache.lucene:lucene-highlighter:" + LUCENE_VERS, + sha1 = "d127ac514e9df965ab0b57d92bbe0c68d3d145b8", ) maven_jar( - name = 'lucene_join', - artifact = 'org.apache.lucene:lucene-join:'+ LUCENE_VERS, - sha1 = 'dac1b322508f3f2696ecc49a97311d34d8382054', + name = "lucene_join", + artifact = "org.apache.lucene:lucene-join:" + LUCENE_VERS, + sha1 = "dac1b322508f3f2696ecc49a97311d34d8382054", ) maven_jar( - name = 'lucene_memory', - artifact = 'org.apache.lucene:lucene-memory:' + LUCENE_VERS, - sha1 = '7409db9863d8fbc265c27793c6cc7511304182c2', + name = "lucene_memory", + artifact = "org.apache.lucene:lucene-memory:" + LUCENE_VERS, + sha1 = "7409db9863d8fbc265c27793c6cc7511304182c2", ) maven_jar( - name = 'lucene_sandbox', - artifact = 'org.apache.lucene:lucene-sandbox:' + LUCENE_VERS, - sha1 = '30a91f120706ba66732d5a974b56c6971b3c8a16', + name = "lucene_sandbox", + artifact = "org.apache.lucene:lucene-sandbox:" + LUCENE_VERS, + sha1 = "30a91f120706ba66732d5a974b56c6971b3c8a16", ) maven_jar( - name = 'lucene_spatial', - artifact = 'org.apache.lucene:lucene-spatial:' + LUCENE_VERS, - sha1 = '8ed7a9a43d78222038573dd1c295a61f3c0bb0db', + name = "lucene_spatial", + artifact = "org.apache.lucene:lucene-spatial:" + LUCENE_VERS, + sha1 = "8ed7a9a43d78222038573dd1c295a61f3c0bb0db", ) maven_jar( - name = 'lucene_suggest', - artifact = 'org.apache.lucene:lucene-suggest:' + LUCENE_VERS, - sha1 = 'e8316b37dddcf2092a54dab2ce6aad0d5ad78585', + name = "lucene_suggest", + artifact = "org.apache.lucene:lucene-suggest:" + LUCENE_VERS, + sha1 = "e8316b37dddcf2092a54dab2ce6aad0d5ad78585", ) maven_jar( - name = 'lucene_queries', - artifact = 'org.apache.lucene:lucene-queries:' + LUCENE_VERS, - sha1 = '692f1ad887cf4e006a23f45019e6de30f3312d3f', + name = "lucene_queries", + artifact = "org.apache.lucene:lucene-queries:" + LUCENE_VERS, + sha1 = "692f1ad887cf4e006a23f45019e6de30f3312d3f", ) maven_jar( - name = 'mime_util', - artifact = 'eu.medsea.mimeutil:mime-util:2.1.3', - sha1 = '0c9cfae15c74f62491d4f28def0dff1dabe52a47', - attach_source = False, + name = "mime_util", + artifact = "eu.medsea.mimeutil:mime-util:2.1.3", + attach_source = False, + sha1 = "0c9cfae15c74f62491d4f28def0dff1dabe52a47", ) -PROLOG_VERS = '1.4.2' +PROLOG_VERS = "1.4.2" maven_jar( - name = 'prolog_runtime', - repository = GERRIT, - artifact = 'com.googlecode.prolog-cafe:prolog-runtime:' + PROLOG_VERS, - sha1 = '4421b4806b6e3a318680f6ab1d57569e857169c6', - attach_source = False, + name = "prolog_runtime", + artifact = "com.googlecode.prolog-cafe:prolog-runtime:" + PROLOG_VERS, + attach_source = False, + repository = GERRIT, + sha1 = "4421b4806b6e3a318680f6ab1d57569e857169c6", ) maven_jar( - name = 'prolog_compiler', - repository = GERRIT, - artifact = 'com.googlecode.prolog-cafe:prolog-compiler:' + PROLOG_VERS, - sha1 = '7e5a7ca5efe7db7f69e015cf492f8f04665244d8', - attach_source = False, + name = "prolog_compiler", + artifact = "com.googlecode.prolog-cafe:prolog-compiler:" + PROLOG_VERS, + attach_source = False, + repository = GERRIT, + sha1 = "7e5a7ca5efe7db7f69e015cf492f8f04665244d8", ) maven_jar( - name = 'prolog_io', - repository = GERRIT, - artifact = 'com.googlecode.prolog-cafe:prolog-io:' + PROLOG_VERS, - sha1 = 'd177f6211d1013e0f31a507127f5c87a7f6941f3', - attach_source = False, + name = "prolog_io", + artifact = "com.googlecode.prolog-cafe:prolog-io:" + PROLOG_VERS, + attach_source = False, + repository = GERRIT, + sha1 = "d177f6211d1013e0f31a507127f5c87a7f6941f3", ) maven_jar( - name = 'cafeteria', - repository = GERRIT, - artifact = 'com.googlecode.prolog-cafe:prolog-cafeteria:' + PROLOG_VERS, - sha1 = '11f396cb2588b65e6a78070488aaa58d12bf000e', - attach_source = False, + name = "cafeteria", + artifact = "com.googlecode.prolog-cafe:prolog-cafeteria:" + PROLOG_VERS, + attach_source = False, + repository = GERRIT, + sha1 = "11f396cb2588b65e6a78070488aaa58d12bf000e", ) maven_jar( - name = 'guava_retrying', - artifact = 'com.github.rholder:guava-retrying:2.0.0', - sha1 = '974bc0a04a11cc4806f7c20a34703bd23c34e7f4', + name = "guava_retrying", + artifact = "com.github.rholder:guava-retrying:2.0.0", + sha1 = "974bc0a04a11cc4806f7c20a34703bd23c34e7f4", ) maven_jar( - name = 'jsr305', - artifact = 'com.google.code.findbugs:jsr305:3.0.1', - sha1 = 'f7be08ec23c21485b9b5a1cf1654c2ec8c58168d', + name = "jsr305", + artifact = "com.google.code.findbugs:jsr305:3.0.1", + sha1 = "f7be08ec23c21485b9b5a1cf1654c2ec8c58168d", ) maven_jar( - name = 'blame_cache', - repository = GERRIT, - artifact = 'com/google/gitiles:blame-cache:0.1-9', - sha1 = '51d35e6f8bbc2412265066cea9653dd758c95826', - attach_source = False, + name = "blame_cache", + artifact = "com/google/gitiles:blame-cache:0.1-9", + attach_source = False, + repository = GERRIT, + sha1 = "51d35e6f8bbc2412265066cea9653dd758c95826", ) # Keep this version of Soy synchronized with the version used in Gitiles. maven_jar( - name = 'soy', - artifact = 'com.google.template:soy:2016-08-09', - sha1 = '43d33651e95480d515fe26c10a662faafe3ad1e4', + name = "soy", + artifact = "com.google.template:soy:2016-08-09", + sha1 = "43d33651e95480d515fe26c10a662faafe3ad1e4", ) maven_jar( - name = 'icu4j', - artifact = 'com.ibm.icu:icu4j:57.1', - sha1 = '198ea005f41219f038f4291f0b0e9f3259730e92', + name = "icu4j", + artifact = "com.ibm.icu:icu4j:57.1", + sha1 = "198ea005f41219f038f4291f0b0e9f3259730e92", ) maven_jar( - name = 'dropwizard_core', - artifact = 'io.dropwizard.metrics:metrics-core:3.1.2', - sha1 = '224f03afd2521c6c94632f566beb1bb5ee32cf07', + name = "dropwizard_core", + artifact = "io.dropwizard.metrics:metrics-core:3.1.2", + sha1 = "224f03afd2521c6c94632f566beb1bb5ee32cf07", ) # This version must match the version that also appears in # gerrit-pgm/src/main/resources/com/google/gerrit/pgm/init/libraries.config -BC_VERS = '1.55' +BC_VERS = "1.55" maven_jar( - name = 'bcprov', - artifact = 'org.bouncycastle:bcprov-jdk15on:' + BC_VERS, - sha1 = '935f2e57a00ec2c489cbd2ad830d4a399708f979', + name = "bcprov", + artifact = "org.bouncycastle:bcprov-jdk15on:" + BC_VERS, + sha1 = "935f2e57a00ec2c489cbd2ad830d4a399708f979", ) maven_jar( - name = 'bcpg', - artifact = 'org.bouncycastle:bcpg-jdk15on:' + BC_VERS, - sha1 = '54ce841795ecdf10f24e50c48d4fdec59c691699', + name = "bcpg", + artifact = "org.bouncycastle:bcpg-jdk15on:" + BC_VERS, + sha1 = "54ce841795ecdf10f24e50c48d4fdec59c691699", ) maven_jar( - name = 'bcpkix', - artifact = 'org.bouncycastle:bcpkix-jdk15on:' + BC_VERS, - sha1 = '6392d8cba22b722c6570d660ca0b3921ff1bae4f', + name = "bcpkix", + artifact = "org.bouncycastle:bcpkix-jdk15on:" + BC_VERS, + sha1 = "6392d8cba22b722c6570d660ca0b3921ff1bae4f", ) maven_jar( - name = 'sshd', - artifact = 'org.apache.sshd:sshd-core:1.2.0', - sha1 = '4bc24a8228ba83dac832680366cf219da71dae8e', + name = "sshd", + artifact = "org.apache.sshd:sshd-core:1.2.0", + sha1 = "4bc24a8228ba83dac832680366cf219da71dae8e", ) maven_jar( - name = 'mina_core', - artifact = 'org.apache.mina:mina-core:2.0.10', - sha1 = 'a1cb1136b104219d6238de886bf5a3ea4554eb58', + name = "mina_core", + artifact = "org.apache.mina:mina-core:2.0.10", + sha1 = "a1cb1136b104219d6238de886bf5a3ea4554eb58", ) maven_jar( - name = 'h2', - artifact = 'com.h2database:h2:1.3.176', - sha1 = 'fd369423346b2f1525c413e33f8cf95b09c92cbd', + name = "h2", + artifact = "com.h2database:h2:1.3.176", + sha1 = "fd369423346b2f1525c413e33f8cf95b09c92cbd", ) -HTTPCOMP_VERS = '4.4.1' +HTTPCOMP_VERS = "4.4.1" maven_jar( - name = 'fluent_hc', - artifact = 'org.apache.httpcomponents:fluent-hc:' + HTTPCOMP_VERS, - sha1 = '96fb842b68a44cc640c661186828b60590c71261', + name = "fluent_hc", + artifact = "org.apache.httpcomponents:fluent-hc:" + HTTPCOMP_VERS, + sha1 = "96fb842b68a44cc640c661186828b60590c71261", ) maven_jar( - name = 'httpclient', - artifact = 'org.apache.httpcomponents:httpclient:' + HTTPCOMP_VERS, - sha1 = '016d0bc512222f1253ee6b64d389c84e22f697f0', + name = "httpclient", + artifact = "org.apache.httpcomponents:httpclient:" + HTTPCOMP_VERS, + sha1 = "016d0bc512222f1253ee6b64d389c84e22f697f0", ) maven_jar( - name = 'httpcore', - artifact = 'org.apache.httpcomponents:httpcore:' + HTTPCOMP_VERS, - sha1 = 'f5aa318bda4c6c8d688c9d00b90681dcd82ce636', + name = "httpcore", + artifact = "org.apache.httpcomponents:httpcore:" + HTTPCOMP_VERS, + sha1 = "f5aa318bda4c6c8d688c9d00b90681dcd82ce636", ) maven_jar( - name = 'httpmime', - artifact = 'org.apache.httpcomponents:httpmime:' + HTTPCOMP_VERS, - sha1 = '2f8757f5ac5e38f46c794e5229d1f3c522e9b1df', + name = "httpmime", + artifact = "org.apache.httpcomponents:httpmime:" + HTTPCOMP_VERS, + sha1 = "2f8757f5ac5e38f46c794e5229d1f3c522e9b1df", ) # Test-only dependencies below. maven_jar( - name = 'jimfs', - artifact = 'com.google.jimfs:jimfs:1.1', - sha1 = '8fbd0579dc68aba6186935cc1bee21d2f3e7ec1c', + name = "jimfs", + artifact = "com.google.jimfs:jimfs:1.1", + sha1 = "8fbd0579dc68aba6186935cc1bee21d2f3e7ec1c", ) maven_jar( - name = 'junit', - artifact = 'junit:junit:4.11', - sha1 = '4e031bb61df09069aeb2bffb4019e7a5034a4ee0', + name = "junit", + artifact = "junit:junit:4.11", + sha1 = "4e031bb61df09069aeb2bffb4019e7a5034a4ee0", ) maven_jar( - name = 'hamcrest_core', - artifact = 'org.hamcrest:hamcrest-core:1.3', - sha1 = '42a25dc3219429f0e5d060061f71acb49bf010a0', + name = "hamcrest_core", + artifact = "org.hamcrest:hamcrest-core:1.3", + sha1 = "42a25dc3219429f0e5d060061f71acb49bf010a0", ) maven_jar( - name = 'truth', - artifact = 'com.google.truth:truth:0.30', - sha1 = '9d591b5a66eda81f0b88cf1c748ab8853d99b18b', + name = "truth", + artifact = "com.google.truth:truth:0.30", + sha1 = "9d591b5a66eda81f0b88cf1c748ab8853d99b18b", ) maven_jar( - name = 'easymock', - artifact = 'org.easymock:easymock:3.1', # When bumping the version - sha1 = '3e127311a86fc2e8f550ef8ee4abe094bbcf7e7e', + name = "easymock", + artifact = "org.easymock:easymock:3.1", # When bumping the version + sha1 = "3e127311a86fc2e8f550ef8ee4abe094bbcf7e7e", ) maven_jar( - name = 'cglib_3_2', - artifact = 'cglib:cglib-nodep:3.2.0', - sha1 = 'cf1ca207c15b04ace918270b6cb3f5601160cdfd', + name = "cglib_3_2", + artifact = "cglib:cglib-nodep:3.2.0", + sha1 = "cf1ca207c15b04ace918270b6cb3f5601160cdfd", ) maven_jar( - name = 'objenesis', - artifact = 'org.objenesis:objenesis:1.3', - sha1 = 'dc13ae4faca6df981fc7aeb5a522d9db446d5d50', + name = "objenesis", + artifact = "org.objenesis:objenesis:1.3", + sha1 = "dc13ae4faca6df981fc7aeb5a522d9db446d5d50", ) -POWERM_VERS = '1.6.1' +POWERM_VERS = "1.6.1" maven_jar( - name = 'powermock_module_junit4', - artifact = 'org.powermock:powermock-module-junit4:' + POWERM_VERS, - sha1 = 'ea8530b2848542624f110a393513af397b37b9cf', + name = "powermock_module_junit4", + artifact = "org.powermock:powermock-module-junit4:" + POWERM_VERS, + sha1 = "ea8530b2848542624f110a393513af397b37b9cf", ) maven_jar( - name = 'powermock_module_junit4_common', - artifact = 'org.powermock:powermock-module-junit4-common:' + POWERM_VERS, - sha1 = '7222ced54dabc310895d02e45c5428ca05193cda', + name = "powermock_module_junit4_common", + artifact = "org.powermock:powermock-module-junit4-common:" + POWERM_VERS, + sha1 = "7222ced54dabc310895d02e45c5428ca05193cda", ) maven_jar( - name = 'powermock_reflect', - artifact = 'org.powermock:powermock-reflect:' + POWERM_VERS, - sha1 = '97d25eda8275c11161bcddda6ef8beabd534c878', + name = "powermock_reflect", + artifact = "org.powermock:powermock-reflect:" + POWERM_VERS, + sha1 = "97d25eda8275c11161bcddda6ef8beabd534c878", ) maven_jar( - name = 'powermock_api_easymock', - artifact = 'org.powermock:powermock-api-easymock:' + POWERM_VERS, - sha1 = 'aa740ecf89a2f64d410b3d93ef8cd6833009ef00', + name = "powermock_api_easymock", + artifact = "org.powermock:powermock-api-easymock:" + POWERM_VERS, + sha1 = "aa740ecf89a2f64d410b3d93ef8cd6833009ef00", ) maven_jar( - name = 'powermock_api_support', - artifact = 'org.powermock:powermock-api-support:' + POWERM_VERS, - sha1 = '592ee6d929c324109d3469501222e0c76ccf0869', + name = "powermock_api_support", + artifact = "org.powermock:powermock-api-support:" + POWERM_VERS, + sha1 = "592ee6d929c324109d3469501222e0c76ccf0869", ) maven_jar( - name = 'powermock_core', - artifact = 'org.powermock:powermock-core:' + POWERM_VERS, - sha1 = '5afc1efce8d44ed76b30af939657bd598e45d962', + name = "powermock_core", + artifact = "org.powermock:powermock-core:" + POWERM_VERS, + sha1 = "5afc1efce8d44ed76b30af939657bd598e45d962", ) maven_jar( - name = 'javassist', - artifact = 'org.javassist:javassist:3.20.0-GA', - sha1 = 'a9cbcdfb7e9f86fbc74d3afae65f2248bfbf82a0', + name = "javassist", + artifact = "org.javassist:javassist:3.20.0-GA", + sha1 = "a9cbcdfb7e9f86fbc74d3afae65f2248bfbf82a0", ) maven_jar( - name = 'derby', - artifact = 'org.apache.derby:derby:10.11.1.1', - sha1 = 'df4b50061e8e4c348ce243b921f53ee63ba9bbe1', - attach_source = False, + name = "derby", + artifact = "org.apache.derby:derby:10.11.1.1", + attach_source = False, + sha1 = "df4b50061e8e4c348ce243b921f53ee63ba9bbe1", ) -JETTY_VERS = '9.3.11.v20160721' +JETTY_VERS = "9.3.11.v20160721" maven_jar( - name = 'jetty_servlet', - artifact = 'org.eclipse.jetty:jetty-servlet:' + JETTY_VERS, - sha1 = 'd550147b85c73ea81084a4ac7915ba7f609021c5', + name = "jetty_servlet", + artifact = "org.eclipse.jetty:jetty-servlet:" + JETTY_VERS, + sha1 = "d550147b85c73ea81084a4ac7915ba7f609021c5", ) maven_jar( - name = 'jetty_security', - artifact = 'org.eclipse.jetty:jetty-security:' + JETTY_VERS, - sha1 = '1cbefc5d1196b9e1ca6f4cc36738998a6ebde8bf', + name = "jetty_security", + artifact = "org.eclipse.jetty:jetty-security:" + JETTY_VERS, + sha1 = "1cbefc5d1196b9e1ca6f4cc36738998a6ebde8bf", ) maven_jar( - name = 'jetty_servlets', - artifact = 'org.eclipse.jetty:jetty-servlets:' + JETTY_VERS, - sha1 = 'a9f7a43977151a463aa21a9b0e882aa3d25452ef', + name = "jetty_servlets", + artifact = "org.eclipse.jetty:jetty-servlets:" + JETTY_VERS, + sha1 = "a9f7a43977151a463aa21a9b0e882aa3d25452ef", ) maven_jar( - name = 'jetty_server', - artifact = 'org.eclipse.jetty:jetty-server:' + JETTY_VERS, - sha1 = 'd932e0dc1e9bd4839ae446754615163d60271a66', + name = "jetty_server", + artifact = "org.eclipse.jetty:jetty-server:" + JETTY_VERS, + sha1 = "d932e0dc1e9bd4839ae446754615163d60271a66", ) maven_jar( - name = 'jetty_jmx', - artifact = 'org.eclipse.jetty:jetty-jmx:' + JETTY_VERS, - sha1 = '21a658d2f5eb87c23eef4911966625ea95f66d32', + name = "jetty_jmx", + artifact = "org.eclipse.jetty:jetty-jmx:" + JETTY_VERS, + sha1 = "21a658d2f5eb87c23eef4911966625ea95f66d32", ) maven_jar( - name = 'jetty_continuation', - artifact = 'org.eclipse.jetty:jetty-continuation:' + JETTY_VERS, - sha1 = '92a91c0dcc5f5d779a1c9f94038332be3f46c9df', + name = "jetty_continuation", + artifact = "org.eclipse.jetty:jetty-continuation:" + JETTY_VERS, + sha1 = "92a91c0dcc5f5d779a1c9f94038332be3f46c9df", ) maven_jar( - name = 'jetty_http', - artifact = 'org.eclipse.jetty:jetty-http:' + JETTY_VERS, - sha1 = 'dcfb95e5b886a981bb76467b911c5b706117f9cf', + name = "jetty_http", + artifact = "org.eclipse.jetty:jetty-http:" + JETTY_VERS, + sha1 = "dcfb95e5b886a981bb76467b911c5b706117f9cf", ) maven_jar( - name = 'jetty_io', - artifact = 'org.eclipse.jetty:jetty-io:' + JETTY_VERS, - sha1 = 'db5f4f481159894a4b670072a34917b5414d0c98', + name = "jetty_io", + artifact = "org.eclipse.jetty:jetty-io:" + JETTY_VERS, + sha1 = "db5f4f481159894a4b670072a34917b5414d0c98", ) maven_jar( - name = 'jetty_util', - artifact = 'org.eclipse.jetty:jetty-util:' + JETTY_VERS, - sha1 = '1812ffd5a04698051180d582c146ca807760c808', + name = "jetty_util", + artifact = "org.eclipse.jetty:jetty-util:" + JETTY_VERS, + sha1 = "1812ffd5a04698051180d582c146ca807760c808", ) maven_jar( - name = 'openid_consumer', - artifact = 'org.openid4java:openid4java:0.9.8', - sha1 = 'de4f1b33d3b0f0b2ab1d32834ec1190b39db4160', + name = "openid_consumer", + artifact = "org.openid4java:openid4java:0.9.8", + sha1 = "de4f1b33d3b0f0b2ab1d32834ec1190b39db4160", ) maven_jar( - name = 'nekohtml', - artifact = 'net.sourceforge.nekohtml:nekohtml:1.9.10', - sha1 = '14052461031a7054aa094f5573792feb6686d3de', + name = "nekohtml", + artifact = "net.sourceforge.nekohtml:nekohtml:1.9.10", + sha1 = "14052461031a7054aa094f5573792feb6686d3de", ) maven_jar( - name = 'xerces', - artifact = 'xerces:xercesImpl:2.8.1', - sha1 = '25101e37ec0c907db6f0612cbf106ee519c1aef1', - attach_source = False, + name = "xerces", + artifact = "xerces:xercesImpl:2.8.1", + attach_source = False, + sha1 = "25101e37ec0c907db6f0612cbf106ee519c1aef1", ) maven_jar( - name = 'postgresql', - artifact = 'postgresql:postgresql:9.1-901-1.jdbc4', - sha1 = '9bfabe48876ec38f6cbaa6931bad05c64a9ea942', + name = "postgresql", + artifact = "postgresql:postgresql:9.1-901-1.jdbc4", + sha1 = "9bfabe48876ec38f6cbaa6931bad05c64a9ea942", ) -CM_VERSION = '5.19.0' +CM_VERSION = "5.19.0" maven_jar( - name = 'codemirror_minified', - artifact = 'org.webjars.npm:codemirror-minified:' + CM_VERSION, - sha1 = '263bf4acb7c4429be3fe46908af240f9f629d51c', + name = "codemirror_minified", + artifact = "org.webjars.npm:codemirror-minified:" + CM_VERSION, + sha1 = "263bf4acb7c4429be3fe46908af240f9f629d51c", ) maven_jar( - name = 'codemirror_original', - artifact = 'org.webjars.npm:codemirror:' + CM_VERSION, - sha1 = 'e9ab382c6be240d55f112051bba3f6c637b798ce', + name = "codemirror_original", + artifact = "org.webjars.npm:codemirror:" + CM_VERSION, + sha1 = "e9ab382c6be240d55f112051bba3f6c637b798ce", ) maven_jar( - name = 'diff_match_patch', - artifact = 'org.webjars:google-diff-match-patch:20121119-1', - sha1 = '0cf1782dbcb8359d95070da9176059a5a9d37709', - attach_source = False, + name = "diff_match_patch", + artifact = "org.webjars:google-diff-match-patch:20121119-1", + attach_source = False, + sha1 = "0cf1782dbcb8359d95070da9176059a5a9d37709", ) maven_jar( - name = 'commons_io', - artifact = 'commons-io:commons-io:1.4', - sha1 = 'a8762d07e76cfde2395257a5da47ba7c1dbd3dce', + name = "commons_io", + artifact = "commons-io:commons-io:1.4", + sha1 = "a8762d07e76cfde2395257a5da47ba7c1dbd3dce", ) maven_jar( - name = "asciidoctor", - artifact = "org.asciidoctor:asciidoctorj:1.5.4.1", - sha1 = "f7ddfb2bbed2f8da3f9ad0d1a5514f04b4274a5a", + name = "asciidoctor", + artifact = "org.asciidoctor:asciidoctorj:1.5.4.1", + sha1 = "f7ddfb2bbed2f8da3f9ad0d1a5514f04b4274a5a", ) maven_jar( - name = "jruby", - artifact = "org.jruby:jruby-complete:9.1.5.0", - sha1 = "00d0003e99da3c4d830b12c099691ce910c84e39", + name = "jruby", + artifact = "org.jruby:jruby-complete:9.1.5.0", + sha1 = "00d0003e99da3c4d830b12c099691ce910c84e39", ) maven_jar( - name = 'elasticsearch', - artifact = 'org.elasticsearch:elasticsearch:2.4.0', - sha1 = 'aeb9704a76fa8654c348f38fcbb993a952a7ab07', + name = "elasticsearch", + artifact = "org.elasticsearch:elasticsearch:2.4.0", + sha1 = "aeb9704a76fa8654c348f38fcbb993a952a7ab07", ) # Java REST client for Elasticsearch. -JEST_VERSION = '2.0.3' +JEST_VERSION = "2.0.3" maven_jar( - name = 'jest_common', - artifact = 'io.searchbox:jest-common:' + JEST_VERSION, - sha1 = 'f304c66894aaf2f6c17a886bc826f09c7a161cf9', + name = "jest_common", + artifact = "io.searchbox:jest-common:" + JEST_VERSION, + sha1 = "f304c66894aaf2f6c17a886bc826f09c7a161cf9", ) maven_jar( - name = 'jest', - artifact = 'io.searchbox:jest:' + JEST_VERSION, - sha1 = 'b8f9ed1423489b361804e47f640515ea9f1fa08d', + name = "jest", + artifact = "io.searchbox:jest:" + JEST_VERSION, + sha1 = "b8f9ed1423489b361804e47f640515ea9f1fa08d", ) maven_jar( - name = 'compress_lzf', - artifact = 'com.ning:compress-lzf:1.0.2', - sha1 = '62896e6fca184c79cc01a14d143f3ae2b4f4b4ae', + name = "compress_lzf", + artifact = "com.ning:compress-lzf:1.0.2", + sha1 = "62896e6fca184c79cc01a14d143f3ae2b4f4b4ae", ) maven_jar( - name = 'hppc', - artifact = 'com.carrotsearch:hppc:0.7.1', - sha1 = '8b5057f74ea378c0150a1860874a3ebdcb713767', + name = "hppc", + artifact = "com.carrotsearch:hppc:0.7.1", + sha1 = "8b5057f74ea378c0150a1860874a3ebdcb713767", ) maven_jar( - name = 'jsr166e', - artifact = 'com.twitter:jsr166e:1.1.0', - sha1 = '233098147123ee5ddcd39ffc57ff648be4b7e5b2', + name = "jsr166e", + artifact = "com.twitter:jsr166e:1.1.0", + sha1 = "233098147123ee5ddcd39ffc57ff648be4b7e5b2", ) maven_jar( - name = 'netty', - artifact = 'io.netty:netty:3.10.0.Final', - sha1 = 'ad61cd1bba067e6634ddd3e160edf0727391ac30', + name = "netty", + artifact = "io.netty:netty:3.10.0.Final", + sha1 = "ad61cd1bba067e6634ddd3e160edf0727391ac30", ) maven_jar( - name = 't_digest', - artifact = 'com.tdunning:t-digest:3.0', - sha1 = '84ccf145ac2215e6bfa63baa3101c0af41017cfc', + name = "t_digest", + artifact = "com.tdunning:t-digest:3.0", + sha1 = "84ccf145ac2215e6bfa63baa3101c0af41017cfc", ) maven_jar( - name = 'jna', - artifact = 'net.java.dev.jna:jna:4.1.0', - sha1 = '1c12d070e602efd8021891cdd7fd18bc129372d4', + name = "jna", + artifact = "net.java.dev.jna:jna:4.1.0", + sha1 = "1c12d070e602efd8021891cdd7fd18bc129372d4", ) -JACKSON_VERSION = '2.6.6' +JACKSON_VERSION = "2.6.6" maven_jar( - name = 'jackson_core', - artifact = 'com.fasterxml.jackson.core:jackson-core:' + JACKSON_VERSION, - sha1 = '02eb801df67aacaf5b1deb4ac626e1964508e47b', + name = "jackson_core", + artifact = "com.fasterxml.jackson.core:jackson-core:" + JACKSON_VERSION, + sha1 = "02eb801df67aacaf5b1deb4ac626e1964508e47b", ) maven_jar( - name = 'jackson_dataformat_smile', - artifact = 'com.fasterxml.jackson.dataformat:jackson-dataformat-smile:' + JACKSON_VERSION, - sha1 = 'ccbfc948748ed2754a58c1af9e0a02b5cc1aed69', + name = "jackson_dataformat_smile", + artifact = "com.fasterxml.jackson.dataformat:jackson-dataformat-smile:" + JACKSON_VERSION, + sha1 = "ccbfc948748ed2754a58c1af9e0a02b5cc1aed69", ) maven_jar( - name = 'jackson_dataformat_cbor', - artifact = 'com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:' + JACKSON_VERSION, - sha1 = '34c7b7ff495fc6b049612bdc9db0900a68e112f8', + name = "jackson_dataformat_cbor", + artifact = "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:" + JACKSON_VERSION, + sha1 = "34c7b7ff495fc6b049612bdc9db0900a68e112f8", ) maven_jar( - name = 'httpasyncclient', - artifact = 'org.apache.httpcomponents:httpasyncclient:4.1.2', - sha1 = '95aa3e6fb520191a0970a73cf09f62948ee614be', + name = "httpasyncclient", + artifact = "org.apache.httpcomponents:httpasyncclient:4.1.2", + sha1 = "95aa3e6fb520191a0970a73cf09f62948ee614be", ) maven_jar( - name = 'httpcore_nio', - artifact = 'org.apache.httpcomponents:httpcore-nio:' + HTTPCOMP_VERS, - sha1 = 'a8c5e3c3bfea5ce23fb647c335897e415eb442e3', + name = "httpcore_nio", + artifact = "org.apache.httpcomponents:httpcore-nio:" + HTTPCOMP_VERS, + sha1 = "a8c5e3c3bfea5ce23fb647c335897e415eb442e3", ) maven_jar( - name = 'httpcore_niossl', - artifact = 'org.apache.httpcomponents:httpcore-niossl:4.0-alpha6', - sha1 = '9c662e7247ca8ceb1de5de629f685c9ef3e4ab58', - attach_source = False, + name = "httpcore_niossl", + artifact = "org.apache.httpcomponents:httpcore-niossl:4.0-alpha6", + attach_source = False, + sha1 = "9c662e7247ca8ceb1de5de629f685c9ef3e4ab58", ) load("//tools/bzl:js.bzl", "npm_binary", "bower_archive") npm_binary( - name = "bower", + name = "bower", ) npm_binary( - name = "vulcanize", - repository = GERRIT, + name = "vulcanize", + repository = GERRIT, ) npm_binary( - name = "crisper", - repository = GERRIT, + name = "crisper", + repository = GERRIT, ) # bower_archive() seed components. bower_archive( - name = 'iron-autogrow-textarea', - package = 'polymerelements/iron-autogrow-textarea', - version = '1.0.12', - sha1 = 'b9b6874c9a2b5be435557a827ff8bd6661672ee3', + name = "iron-autogrow-textarea", + package = "polymerelements/iron-autogrow-textarea", + sha1 = "b9b6874c9a2b5be435557a827ff8bd6661672ee3", + version = "1.0.12", ) bower_archive( - name = 'es6-promise', - package = 'stefanpenner/es6-promise', - version = '3.3.0', - sha1 = 'a3a797bb22132f1ef75f9a2556173f81870c2e53', + name = "es6-promise", + package = "stefanpenner/es6-promise", + sha1 = "a3a797bb22132f1ef75f9a2556173f81870c2e53", + version = "3.3.0", ) bower_archive( - name = 'fetch', - package = 'fetch', - version = '1.0.0', - sha1 = '1b05a2bb40c73232c2909dc196de7519fe4db7a9', + name = "fetch", + package = "fetch", + sha1 = "1b05a2bb40c73232c2909dc196de7519fe4db7a9", + version = "1.0.0", ) bower_archive( - name = 'iron-dropdown', - package = 'polymerelements/iron-dropdown', - version = '1.4.0', - sha1 = '63e3d669a09edaa31c4f05afc76b53b919ef0595', + name = "iron-dropdown", + package = "polymerelements/iron-dropdown", + sha1 = "63e3d669a09edaa31c4f05afc76b53b919ef0595", + version = "1.4.0", ) bower_archive( - name = 'iron-input', - package = 'polymerelements/iron-input', - version = '1.0.10', - sha1 = '9bc0c8e81de2527125383cbcf74dd9f27e7fa9ac', + name = "iron-input", + package = "polymerelements/iron-input", + sha1 = "9bc0c8e81de2527125383cbcf74dd9f27e7fa9ac", + version = "1.0.10", ) bower_archive( - name = 'iron-overlay-behavior', - package = 'polymerelements/iron-overlay-behavior', - version = '1.7.6', - sha1 = '83181085fda59446ce74fd0d5ca30c223f38ee4a', + name = "iron-overlay-behavior", + package = "polymerelements/iron-overlay-behavior", + sha1 = "83181085fda59446ce74fd0d5ca30c223f38ee4a", + version = "1.7.6", ) bower_archive( - name = 'iron-selector', - package = 'polymerelements/iron-selector', - version = '1.5.2', - sha1 = 'c57235dfda7fbb987c20ad0e97aac70babf1a1bf', + name = "iron-selector", + package = "polymerelements/iron-selector", + sha1 = "c57235dfda7fbb987c20ad0e97aac70babf1a1bf", + version = "1.5.2", ) bower_archive( - name = 'moment', - package = 'moment/moment', - version = '2.13.0', - sha1 = 'fc8ce2c799bab21f6ced7aff928244f4ca8880aa', + name = "moment", + package = "moment/moment", + sha1 = "fc8ce2c799bab21f6ced7aff928244f4ca8880aa", + version = "2.13.0", ) bower_archive( - name = 'page', - package = 'visionmedia/page.js', - version = '1.7.1', - sha1 = '51a05428dd4f68fae1df5f12d0e2b61ba67f7757', + name = "page", + package = "visionmedia/page.js", + sha1 = "51a05428dd4f68fae1df5f12d0e2b61ba67f7757", + version = "1.7.1", ) bower_archive( - name = 'polymer', - package = 'polymer/polymer', - version = '1.4.0', - sha1 = 'b84725939ead7c7bdf9917b065f68ef8dc790d06', + name = "polymer", + package = "polymer/polymer", + sha1 = "b84725939ead7c7bdf9917b065f68ef8dc790d06", + version = "1.4.0", ) bower_archive( - name = 'promise-polyfill', - package = 'polymerlabs/promise-polyfill', - version = '1.0.0', - sha1 = 'a3b598c06cbd7f441402e666ff748326030905d6', + name = "promise-polyfill", + package = "polymerlabs/promise-polyfill", + sha1 = "a3b598c06cbd7f441402e666ff748326030905d6", + version = "1.0.0", ) # bower test stuff bower_archive( - name = 'iron-test-helpers', - package = 'polymerelements/iron-test-helpers', - version = '1.2.5', - sha1 = '433b03b106f5ff32049b84150cd70938e18b67ac', + name = "iron-test-helpers", + package = "polymerelements/iron-test-helpers", + sha1 = "433b03b106f5ff32049b84150cd70938e18b67ac", + version = "1.2.5", ) bower_archive( - name = 'test-fixture', - package = 'polymerelements/test-fixture', - version = '1.1.1', - sha1 = 'e373bd21c069163c3a754e234d52c07c77b20d3c', + name = "test-fixture", + package = "polymerelements/test-fixture", + sha1 = "e373bd21c069163c3a754e234d52c07c77b20d3c", + version = "1.1.1", ) bower_archive( - name = 'web-component-tester', - package = 'web-component-tester', - version = '4.2.2', - sha1 = '54556000c33d9ed7949aa546c1b4a1531491a5f0', + name = "web-component-tester", + package = "web-component-tester", + sha1 = "54556000c33d9ed7949aa546c1b4a1531491a5f0", + version = "4.2.2", ) # Bower component transitive dependencies. load("//lib/js:bower_archives.bzl", "load_bower_archives") + load_bower_archives() diff --git a/gerrit-acceptance-framework/BUILD b/gerrit-acceptance-framework/BUILD index 7f06cd3c32..69f132b873 100644 --- a/gerrit-acceptance-framework/BUILD +++ b/gerrit-acceptance-framework/BUILD @@ -1,73 +1,74 @@ -load('//tools/bzl:java.bzl', 'java_library2') +load("//tools/bzl:java.bzl", "java_library2") -SRCS = glob(['src/test/java/com/google/gerrit/acceptance/*.java']) +SRCS = glob(["src/test/java/com/google/gerrit/acceptance/*.java"]) PROVIDED = [ - '//gerrit-common:annotations', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-httpd:httpd', - '//gerrit-lucene:lucene', - '//gerrit-pgm:init', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//lib:gson', - '//lib:jsch', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/mina:sshd', - '//lib:servlet-api-3_1', + "//gerrit-common:annotations", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-httpd:httpd", + "//gerrit-lucene:lucene", + "//gerrit-pgm:init", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//lib:gson", + "//lib:jsch", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/mina:sshd", + "//lib:servlet-api-3_1", ] java_binary( - name = 'acceptance-framework', - main_class = 'Dummy', - runtime_deps = [':lib'], - visibility = ['//visibility:public'], - testonly = 1, + name = "acceptance-framework", + testonly = 1, + main_class = "Dummy", + visibility = ["//visibility:public"], + runtime_deps = [":lib"], ) java_library2( - name = 'lib', - srcs = SRCS, - exported_deps = [ - '//gerrit-antlr:query_exception', - '//gerrit-gpg:gpg', - '//gerrit-launcher:launcher', - '//gerrit-openid:openid', - '//gerrit-pgm:daemon', - '//gerrit-pgm:http-jetty', - '//gerrit-pgm:util-nodep', - '//gerrit-server/src/main/prolog:common', - '//gerrit-server:testutil', - '//lib/auto:auto-value', - '//lib/httpcomponents:fluent-hc', - '//lib/httpcomponents:httpclient', - '//lib/httpcomponents:httpcore', - '//lib/jetty:servlet', - '//lib/jgit/org.eclipse.jgit.junit:junit', - '//lib/log:impl_log4j', - '//lib/log:log4j', - '//lib:truth', - ], - deps = PROVIDED + [ # We want these deps to be exported_deps - '//lib/greenmail:greenmail', - '//lib:gwtorm', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:guice-servlet', - '//lib/mail:mail', - ], - visibility = ['//visibility:public'], - testonly = 1, + name = "lib", + testonly = 1, + srcs = SRCS, + exported_deps = [ + "//gerrit-antlr:query_exception", + "//gerrit-gpg:gpg", + "//gerrit-launcher:launcher", + "//gerrit-openid:openid", + "//gerrit-pgm:daemon", + "//gerrit-pgm:http-jetty", + "//gerrit-pgm:util-nodep", + "//gerrit-server:testutil", + "//gerrit-server/src/main/prolog:common", + "//lib:truth", + "//lib/auto:auto-value", + "//lib/httpcomponents:fluent-hc", + "//lib/httpcomponents:httpclient", + "//lib/httpcomponents:httpcore", + "//lib/jetty:servlet", + "//lib/jgit/org.eclipse.jgit.junit:junit", + "//lib/log:impl_log4j", + "//lib/log:log4j", + ], + visibility = ["//visibility:public"], + deps = PROVIDED + [ + # We want these deps to be exported_deps + "//lib/greenmail:greenmail", + "//lib:gwtorm", + "//lib/guice:guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:guice-servlet", + "//lib/mail:mail", + ], ) -load('//tools/bzl:javadoc.bzl', 'java_doc') +load("//tools/bzl:javadoc.bzl", "java_doc") java_doc( - name = 'acceptance-framework-javadoc', - title = 'Gerrit Acceptance Test Framework Documentation', - libs = [':lib'], - pkgs = ['com.google.gerrit.acceptance'], - visibility = ['//visibility:public'], - testonly = 1, + name = "acceptance-framework-javadoc", + testonly = 1, + libs = [":lib"], + pkgs = ["com.google.gerrit.acceptance"], + title = "Gerrit Acceptance Test Framework Documentation", + visibility = ["//visibility:public"], ) diff --git a/gerrit-acceptance-tests/BUILD b/gerrit-acceptance-tests/BUILD index 71b1b4568f..c7b8043fc4 100644 --- a/gerrit-acceptance-tests/BUILD +++ b/gerrit-acceptance-tests/BUILD @@ -1,43 +1,41 @@ -load('//tools/bzl:java.bzl', 'java_library2') +load("//tools/bzl:java.bzl", "java_library2") java_library2( - name = 'lib', - srcs = glob(['src/test/java/com/google/gerrit/acceptance/*.java']), - exported_deps = [ - '//gerrit-acceptance-framework:lib', - '//gerrit-common:annotations', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-gpg:testutil', - '//gerrit-launcher:launcher', - '//gerrit-lucene:lucene', - '//gerrit-httpd:httpd', - '//gerrit-pgm:init', - '//gerrit-pgm:pgm', - '//gerrit-pgm:util', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//gerrit-server:testutil', - '//gerrit-server/src/main/prolog:common', - '//gerrit-sshd:sshd', - - '//lib:args4j', - '//lib:gson', - '//lib:gwtjsonrpc', - '//lib:gwtorm', - '//lib:h2', - '//lib:jsch', - '//lib:servlet-api-3_1-without-neverlink', - - '//lib/bouncycastle:bcpg', - '//lib/bouncycastle:bcprov', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:guice-servlet', - '//lib/log:api', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/mina:sshd', - ], - visibility = ['//visibility:public'], - testonly = 1, + name = "lib", + testonly = 1, + srcs = glob(["src/test/java/com/google/gerrit/acceptance/*.java"]), + exported_deps = [ + "//gerrit-acceptance-framework:lib", + "//gerrit-common:annotations", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-gpg:testutil", + "//gerrit-httpd:httpd", + "//gerrit-launcher:launcher", + "//gerrit-lucene:lucene", + "//gerrit-pgm:init", + "//gerrit-pgm:pgm", + "//gerrit-pgm:util", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//gerrit-server:testutil", + "//gerrit-server/src/main/prolog:common", + "//gerrit-sshd:sshd", + "//lib:args4j", + "//lib:gson", + "//lib:gwtjsonrpc", + "//lib:gwtorm", + "//lib:h2", + "//lib:jsch", + "//lib:servlet-api-3_1-without-neverlink", + "//lib/bouncycastle:bcpg", + "//lib/bouncycastle:bcprov", + "//lib/guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:guice-servlet", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/log:api", + "//lib/mina:sshd", + ], + visibility = ["//visibility:public"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/accounts/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/accounts/BUILD index 6caddb61c3..3d62cfcc89 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/accounts/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/accounts/BUILD @@ -1,7 +1,10 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'api_account', - srcs = glob(['*IT.java']), - labels = ['api', 'noci'], + srcs = glob(["*IT.java"]), + group = "api_account", + labels = [ + "api", + "noci", + ], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/change/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/change/BUILD index 371b03a986..3c4e219534 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/change/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/change/BUILD @@ -1,7 +1,10 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'api_change', - srcs = glob(['*IT.java']), - labels = ['api', 'noci'], + srcs = glob(["*IT.java"]), + group = "api_change", + labels = [ + "api", + "noci", + ], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/config/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/config/BUILD index da8274da04..6d39131e45 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/config/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/config/BUILD @@ -1,7 +1,7 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'api_config', - srcs = glob(['*IT.java']), - labels = ['api'], + srcs = glob(["*IT.java"]), + group = "api_config", + labels = ["api"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/group/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/group/BUILD index 1a374f0fcd..1b90776524 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/group/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/group/BUILD @@ -1,23 +1,23 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'api_group', - srcs = glob(['*IT.java']), - deps = [ - ':util', - '//gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/account:util', - ], - labels = ['api'], + srcs = glob(["*IT.java"]), + group = "api_group", + labels = ["api"], + deps = [ + ":util", + "//gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/account:util", + ], ) java_library( - name = 'util', - srcs = ['GroupAssert.java'], - deps = [ - '//gerrit-extension-api:api', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//lib:gwtorm', - '//lib:truth', - ], + name = "util", + srcs = ["GroupAssert.java"], + deps = [ + "//gerrit-extension-api:api", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//lib:gwtorm", + "//lib:truth", + ], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/project/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/project/BUILD index 4fb65ffef3..8be310171a 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/project/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/project/BUILD @@ -1,7 +1,7 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'api_project', - srcs = glob(['*IT.java']), - labels = ['api'], + srcs = glob(["*IT.java"]), + group = "api_project", + labels = ["api"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/revision/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/revision/BUILD index e527b9db22..4f15ec0c58 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/revision/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/revision/BUILD @@ -1,7 +1,7 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'api_revision', - srcs = glob(['*IT.java']), - labels = ['api'], + srcs = glob(["*IT.java"]), + group = "api_revision", + labels = ["api"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/edit/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/edit/BUILD index 3fcf2d8b30..79334f9324 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/edit/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/edit/BUILD @@ -1,11 +1,11 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'edit', - srcs = ['ChangeEditIT.java'], - deps = [ - '//lib/commons:codec', - '//lib/joda:joda-time', - ], - labels = ['edit'], + srcs = ["ChangeEditIT.java"], + group = "edit", + labels = ["edit"], + deps = [ + "//lib/commons:codec", + "//lib/joda:joda-time", + ], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/git/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/git/BUILD index 3b7d2f2bfd..43ec5bcd9b 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/git/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/git/BUILD @@ -1,28 +1,28 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'git', - srcs = glob(['*IT.java']), - deps = [ - ':submodule_util', - ':push_for_review', - ], - labels = ['git'], + srcs = glob(["*IT.java"]), + group = "git", + labels = ["git"], + deps = [ + ":push_for_review", + ":submodule_util", + ], ) java_library( - name = 'push_for_review', - srcs = ['AbstractPushForReview.java'], - deps = [ - '//gerrit-acceptance-tests:lib', - '//lib/joda:joda-time', - ], - testonly = 1, + name = "push_for_review", + testonly = 1, + srcs = ["AbstractPushForReview.java"], + deps = [ + "//gerrit-acceptance-tests:lib", + "//lib/joda:joda-time", + ], ) java_library( - name = 'submodule_util', - srcs = ['AbstractSubmoduleSubscription.java'], - deps = ['//gerrit-acceptance-tests:lib'], - testonly = 1, + name = "submodule_util", + testonly = 1, + srcs = ["AbstractSubmoduleSubscription.java"], + deps = ["//gerrit-acceptance-tests:lib"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/pgm/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/pgm/BUILD index 56cecb8f16..f405e19902 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/pgm/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/pgm/BUILD @@ -1,7 +1,7 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'pgm', - srcs = glob(['*IT.java']), - labels = ['pgm'], + srcs = glob(["*IT.java"]), + group = "pgm", + labels = ["pgm"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/account/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/account/BUILD index d0339dfb91..ea59d6139f 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/account/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/account/BUILD @@ -1,24 +1,24 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'rest_account', - srcs = glob(['*IT.java']), - deps = [':util'], - labels = ['rest'] + srcs = glob(["*IT.java"]), + group = "rest_account", + labels = ["rest"], + deps = [":util"], ) java_library( - name = 'util', - srcs = [ - 'AccountAssert.java', - 'CapabilityInfo.java', - ], - deps = [ - '//gerrit-acceptance-tests:lib', - '//gerrit-reviewdb:server', - '//lib:gwtorm', - '//lib:junit', - ], - visibility = ['//visibility:public'], - testonly = 1, + name = "util", + testonly = 1, + srcs = [ + "AccountAssert.java", + "CapabilityInfo.java", + ], + visibility = ["//visibility:public"], + deps = [ + "//gerrit-acceptance-tests:lib", + "//gerrit-reviewdb:server", + "//lib:gwtorm", + "//lib:junit", + ], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/change/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/change/BUILD index d4d54b68bf..b7ed2e8340 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/change/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/change/BUILD @@ -1,33 +1,38 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") -SUBMIT_UTIL_SRCS = glob(['AbstractSubmit*.java']) -SUBMIT_TESTS = glob(['Submit*IT.java']) -OTHER_TESTS = glob(['*IT.java'], exclude = SUBMIT_TESTS) +SUBMIT_UTIL_SRCS = glob(["AbstractSubmit*.java"]) -acceptance_tests( - group = 'rest_change_other', - srcs = OTHER_TESTS, - deps = [ - ':submit_util', - '//lib/joda:joda-time', - ], - labels = ['rest'], +SUBMIT_TESTS = glob(["Submit*IT.java"]) + +OTHER_TESTS = glob( + ["*IT.java"], + exclude = SUBMIT_TESTS, ) acceptance_tests( - group = 'rest_change_submit', - srcs = SUBMIT_TESTS, - deps = [ - ':submit_util', - ], - labels = ['rest'], + srcs = OTHER_TESTS, + group = "rest_change_other", + labels = ["rest"], + deps = [ + ":submit_util", + "//lib/joda:joda-time", + ], +) + +acceptance_tests( + srcs = SUBMIT_TESTS, + group = "rest_change_submit", + labels = ["rest"], + deps = [ + ":submit_util", + ], ) java_library( - name = 'submit_util', - srcs = SUBMIT_UTIL_SRCS, - deps = [ - '//gerrit-acceptance-tests:lib', - ], - testonly = 1, + name = "submit_util", + testonly = 1, + srcs = SUBMIT_UTIL_SRCS, + deps = [ + "//gerrit-acceptance-tests:lib", + ], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/config/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/config/BUILD index b9d3ffb293..6becf0fdf9 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/config/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/config/BUILD @@ -1,7 +1,7 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'rest_config', - srcs = glob(['*IT.java']), - labels = ['rest'] + srcs = glob(["*IT.java"]), + group = "rest_config", + labels = ["rest"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/group/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/group/BUILD index d9a400ce74..b3672ee502 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/group/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/group/BUILD @@ -1,8 +1,7 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'rest_group', - srcs = glob(['*IT.java']), - labels = ['rest'] + srcs = glob(["*IT.java"]), + group = "rest_group", + labels = ["rest"], ) - diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/project/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/project/BUILD index fbb6bdeb5c..3266be8081 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/project/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/project/BUILD @@ -1,37 +1,37 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'rest_project', - srcs = glob(['*IT.java']), - deps = [ - ':project', - ':refassert', - ], - labels = ['rest'], + srcs = glob(["*IT.java"]), + group = "rest_project", + labels = ["rest"], + deps = [ + ":project", + ":refassert", + ], ) java_library( - name = 'refassert', - srcs = [ - 'RefAssert.java', - ], - deps = [ - '//lib:truth', - '//gerrit-extension-api:api', - '//gerrit-server:server', - ], + name = "refassert", + srcs = [ + "RefAssert.java", + ], + deps = [ + "//gerrit-extension-api:api", + "//gerrit-server:server", + "//lib:truth", + ], ) java_library( - name = 'project', - srcs = [ - 'ProjectAssert.java', - ], - deps = [ - '//gerrit-extension-api:api', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//lib:gwtorm', - '//lib:truth', - ], + name = "project", + srcs = [ + "ProjectAssert.java", + ], + deps = [ + "//gerrit-extension-api:api", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//lib:gwtorm", + "//lib:truth", + ], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/change/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/change/BUILD index a5e6d36670..ac32b02fc9 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/change/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/change/BUILD @@ -1,7 +1,7 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'server_change', - srcs = glob(['*IT.java']), - labels = ['server'], + srcs = glob(["*IT.java"]), + group = "server_change", + labels = ["server"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/event/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/event/BUILD index ff0c51b548..3804beaeea 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/event/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/event/BUILD @@ -1,7 +1,7 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'server_event', - srcs = glob(['*IT.java']), - labels = ['server'], + srcs = glob(["*IT.java"]), + group = "server_event", + labels = ["server"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/notedb/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/notedb/BUILD index 17c4cdc0b2..d314f16060 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/notedb/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/notedb/BUILD @@ -1,7 +1,10 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'server_notedb', - srcs = glob(['*IT.java']), - labels = ['notedb', 'server'], + srcs = glob(["*IT.java"]), + group = "server_notedb", + labels = [ + "notedb", + "server", + ], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/project/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/project/BUILD index 458b5ebcc3..622caf78d9 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/project/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/server/project/BUILD @@ -1,7 +1,7 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'server_project', - srcs = glob(['*IT.java']), - labels = ['server'], + srcs = glob(["*IT.java"]), + group = "server_project", + labels = ["server"], ) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/ssh/BUILD b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/ssh/BUILD index 3c91aa153a..91d8d71776 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/ssh/BUILD +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/ssh/BUILD @@ -1,8 +1,8 @@ -load('//gerrit-acceptance-tests:tests.bzl', 'acceptance_tests') +load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests") acceptance_tests( - group = 'ssh', - srcs = glob(['*IT.java']), - deps = ['//lib/commons:compress'], - labels = ['ssh'], + srcs = glob(["*IT.java"]), + group = "ssh", + labels = ["ssh"], + deps = ["//lib/commons:compress"], ) diff --git a/gerrit-antlr/BUILD b/gerrit-antlr/BUILD index 6eedccf0e6..83371525df 100644 --- a/gerrit-antlr/BUILD +++ b/gerrit-antlr/BUILD @@ -1,32 +1,32 @@ -load('//tools/bzl:genrule2.bzl', 'genrule2') +load("//tools/bzl:genrule2.bzl", "genrule2") java_library( - name = 'query_exception', - srcs = ['src/main/java/com/google/gerrit/server/query/QueryParseException.java'], - visibility = ['//visibility:public'], + name = "query_exception", + srcs = ["src/main/java/com/google/gerrit/server/query/QueryParseException.java"], + visibility = ["//visibility:public"], ) genrule2( - name = 'query_antlr', - srcs = ['src/main/antlr3/com/google/gerrit/server/query/Query.g'], - cmd = ' && '.join([ - '$(location //lib/antlr:antlr-tool) -o $$TMP $<', - 'cd $$TMP', - '$$ROOT/$(location @bazel_tools//tools/zip:zipper) cC $$ROOT/$@ $$(find .)' - ]), - tools = [ - '@bazel_tools//tools/zip:zipper', - '//lib/antlr:antlr-tool', - ], - outs = [ 'query_antlr.srcjar' ], + name = "query_antlr", + srcs = ["src/main/antlr3/com/google/gerrit/server/query/Query.g"], + outs = ["query_antlr.srcjar"], + cmd = " && ".join([ + "$(location //lib/antlr:antlr-tool) -o $$TMP $<", + "cd $$TMP", + "$$ROOT/$(location @bazel_tools//tools/zip:zipper) cC $$ROOT/$@ $$(find .)", + ]), + tools = [ + "//lib/antlr:antlr-tool", + "@bazel_tools//tools/zip:zipper", + ], ) java_library( - name = 'query_parser', - srcs = [':query_antlr'], - deps = [ - ':query_exception', - '//lib/antlr:java_runtime', - ], - visibility = ['//visibility:public'], + name = "query_parser", + srcs = [":query_antlr"], + visibility = ["//visibility:public"], + deps = [ + ":query_exception", + "//lib/antlr:java_runtime", + ], ) diff --git a/gerrit-cache-h2/BUILD b/gerrit-cache-h2/BUILD index a70393de41..45cf4167a4 100644 --- a/gerrit-cache-h2/BUILD +++ b/gerrit-cache-h2/BUILD @@ -1,30 +1,30 @@ -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:junit.bzl", "junit_tests") java_library( - name = 'cache-h2', - srcs = glob(['src/main/java/**/*.java']), - deps = [ - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-server:server', - '//lib:guava', - '//lib:h2', - '//lib/guice:guice', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/log:api', - ], - visibility = ['//visibility:public'], + name = "cache-h2", + srcs = glob(["src/main/java/**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-server:server", + "//lib:guava", + "//lib:h2", + "//lib/guice", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/log:api", + ], ) junit_tests( - name = 'tests', - srcs = glob(['src/test/java/**/*.java']), - deps = [ - ':cache-h2', - '//gerrit-server:server', - '//lib:guava', - '//lib:h2', - '//lib/guice:guice', - '//lib:junit', - ], + name = "tests", + srcs = glob(["src/test/java/**/*.java"]), + deps = [ + ":cache-h2", + "//gerrit-server:server", + "//lib:guava", + "//lib:h2", + "//lib:junit", + "//lib/guice", + ], ) diff --git a/gerrit-common/BUILD b/gerrit-common/BUILD index 9add6e745d..438908066d 100644 --- a/gerrit-common/BUILD +++ b/gerrit-common/BUILD @@ -1,78 +1,86 @@ -load('//tools/bzl:gwt.bzl', 'gwt_module') -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:gwt.bzl", "gwt_module") +load("//tools/bzl:junit.bzl", "junit_tests") -SRC = 'src/main/java/com/google/gerrit/' +SRC = "src/main/java/com/google/gerrit/" ANNOTATIONS = [ - SRC + x for x in [ - 'common/Nullable.java', - 'common/audit/Audit.java', - 'common/auth/SignInRequired.java', - ] + SRC + x + for x in [ + "common/Nullable.java", + "common/audit/Audit.java", + "common/auth/SignInRequired.java", + ] ] java_library( - name = 'annotations', - srcs = ANNOTATIONS, - visibility = ['//visibility:public'], + name = "annotations", + srcs = ANNOTATIONS, + visibility = ["//visibility:public"], ) gwt_module( - name = 'client', - srcs = glob([SRC + 'common/**/*.java']), - gwt_xml = SRC + 'Common.gwt.xml', - exported_deps = [ - '//gerrit-extension-api:api', - '//gerrit-prettify:client', - '//lib:guava', - '//lib:gwtorm_client', - '//lib:servlet-api-3_1', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/joda:joda-time', - '//lib/log:api', - ], - visibility = ['//visibility:public'], + name = "client", + srcs = glob([SRC + "common/**/*.java"]), + exported_deps = [ + "//gerrit-extension-api:api", + "//gerrit-prettify:client", + "//lib:guava", + "//lib:gwtorm_client", + "//lib:servlet-api-3_1", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/joda:joda-time", + "//lib/log:api", + ], + gwt_xml = SRC + "Common.gwt.xml", + visibility = ["//visibility:public"], ) java_library( - name = 'server', - srcs = glob([SRC + 'common/**/*.java'], exclude = ANNOTATIONS), - deps = [ - ':annotations', - '//gerrit-extension-api:api', - '//gerrit-patch-jgit:server', - '//gerrit-prettify:server', - '//gerrit-reviewdb:server', - '//lib:guava', - '//lib:gwtjsonrpc', - '//lib:gwtorm', - '//lib:servlet-api-3_1', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/joda:joda-time', - '//lib/log:api', - ], - visibility = ['//visibility:public'], + name = "server", + srcs = glob( + [SRC + "common/**/*.java"], + exclude = ANNOTATIONS, + ), + visibility = ["//visibility:public"], + deps = [ + ":annotations", + "//gerrit-extension-api:api", + "//gerrit-patch-jgit:server", + "//gerrit-prettify:server", + "//gerrit-reviewdb:server", + "//lib:guava", + "//lib:gwtjsonrpc", + "//lib:gwtorm", + "//lib:servlet-api-3_1", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/joda:joda-time", + "//lib/log:api", + ], ) -TEST = 'src/test/java/com/google/gerrit/common/' -AUTO_VALUE_TEST_SRCS = [TEST + 'AutoValueTest.java'] +TEST = "src/test/java/com/google/gerrit/common/" + +AUTO_VALUE_TEST_SRCS = [TEST + "AutoValueTest.java"] junit_tests( - name = 'client_tests', - srcs = glob(['src/test/java/**/*.java'], exclude = AUTO_VALUE_TEST_SRCS), - deps = [ - ':client', - '//lib:guava', - '//lib:junit', - '//lib:truth', - ], + name = "client_tests", + srcs = glob( + ["src/test/java/**/*.java"], + exclude = AUTO_VALUE_TEST_SRCS, + ), + deps = [ + ":client", + "//lib:guava", + "//lib:junit", + "//lib:truth", + ], ) junit_tests( - name = 'auto_value_tests', - srcs = AUTO_VALUE_TEST_SRCS, - deps = [ - '//lib:truth', - '//lib/auto:auto-value', - ], + name = "auto_value_tests", + srcs = AUTO_VALUE_TEST_SRCS, + deps = [ + "//lib:truth", + "//lib/auto:auto-value", + ], ) diff --git a/gerrit-elasticsearch/BUILD b/gerrit-elasticsearch/BUILD index 351074767f..62ea830b5e 100644 --- a/gerrit-elasticsearch/BUILD +++ b/gerrit-elasticsearch/BUILD @@ -1,65 +1,68 @@ java_library( - name = 'elasticsearch', - srcs = glob(['src/main/java/**/*.java']), - deps = [ - '//gerrit-antlr:query_exception', - '//gerrit-extension-api:api', - '//gerrit-reviewdb:client', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//lib:gson', - '//lib:guava', - '//lib:gwtorm', - '//lib:protobuf', - '//lib/commons:codec', - '//lib/commons:lang', - '//lib/elasticsearch:elasticsearch', - '//lib/elasticsearch:jest', - '//lib/elasticsearch:jest-common', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/joda:joda-time', - '//lib/log:api', - '//lib/lucene:lucene-analyzers-common', - '//lib/lucene:lucene-core', - ], - visibility = ['//visibility:public'], + name = "elasticsearch", + srcs = glob(["src/main/java/**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + "//gerrit-antlr:query_exception", + "//gerrit-extension-api:api", + "//gerrit-reviewdb:client", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//lib:gson", + "//lib:guava", + "//lib:gwtorm", + "//lib:protobuf", + "//lib/commons:codec", + "//lib/commons:lang", + "//lib/elasticsearch", + "//lib/elasticsearch:jest", + "//lib/elasticsearch:jest-common", + "//lib/guice", + "//lib/guice:guice-assistedinject", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/joda:joda-time", + "//lib/log:api", + "//lib/lucene:lucene-analyzers-common", + "//lib/lucene:lucene-core", + ], ) -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:junit.bzl", "junit_tests") java_library( - name = 'elasticsearch_test_utils', - srcs = glob(['src/test/java/**/ElasticTestUtils.java']), - deps = [ - '//gerrit-extension-api:api', - '//gerrit-server:server', - '//lib:gson', - '//lib:guava', - '//lib:junit', - '//lib:truth', - '//lib/elasticsearch:elasticsearch', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/jgit/org.eclipse.jgit.junit:junit', - ], - testonly = 1, + name = "elasticsearch_test_utils", + testonly = 1, + srcs = glob(["src/test/java/**/ElasticTestUtils.java"]), + deps = [ + "//gerrit-extension-api:api", + "//gerrit-server:server", + "//lib:gson", + "//lib:guava", + "//lib:junit", + "//lib:truth", + "//lib/elasticsearch", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/jgit/org.eclipse.jgit.junit:junit", + ], ) junit_tests( - name = 'elasticsearch_tests', - tags = ['elastic', 'flaky'], - srcs = glob(['src/test/java/**/*Test.java']), - size = "large", - deps = [ - ':elasticsearch_test_utils', - ':elasticsearch', - '//gerrit-server:query_tests_code', - '//gerrit-server:server', - '//gerrit-server:testutil', - '//lib/guice:guice', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/jgit/org.eclipse.jgit.junit:junit', - ], - flaky = 1, + name = "elasticsearch_tests", + size = "large", + srcs = glob(["src/test/java/**/*Test.java"]), + flaky = 1, + tags = [ + "elastic", + "flaky", + ], + deps = [ + ":elasticsearch", + ":elasticsearch_test_utils", + "//gerrit-server:query_tests_code", + "//gerrit-server:server", + "//gerrit-server:testutil", + "//lib/guice", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/jgit/org.eclipse.jgit.junit:junit", + ], ) diff --git a/gerrit-extension-api/BUILD b/gerrit-extension-api/BUILD index 6f4df01395..824fc9abe1 100644 --- a/gerrit-extension-api/BUILD +++ b/gerrit-extension-api/BUILD @@ -1,59 +1,63 @@ -load('//lib:guava.bzl', 'GUAVA_DOC_URL') -load('//lib/jgit:jgit.bzl', 'JGIT_DOC_URL') -load('//tools/bzl:gwt.bzl', 'gwt_module') +load("//lib:guava.bzl", "GUAVA_DOC_URL") +load("//lib/jgit:jgit.bzl", "JGIT_DOC_URL") +load("//tools/bzl:gwt.bzl", "gwt_module") -SRC = 'src/main/java/com/google/gerrit/extensions/' -SRCS = glob([SRC + '**/*.java']) +SRC = "src/main/java/com/google/gerrit/extensions/" -EXT_API_SRCS = glob([SRC + 'client/*.java']) +SRCS = glob([SRC + "**/*.java"]) + +EXT_API_SRCS = glob([SRC + "client/*.java"]) gwt_module( - name = 'client', - srcs = EXT_API_SRCS, - gwt_xml = SRC + 'Extensions.gwt.xml', - visibility = ['//visibility:public'], + name = "client", + srcs = EXT_API_SRCS, + gwt_xml = SRC + "Extensions.gwt.xml", + visibility = ["//visibility:public"], ) java_binary( - name = 'extension-api', - main_class = 'Dummy', - runtime_deps = [':lib'], - visibility = ['//visibility:public'], + name = "extension-api", + main_class = "Dummy", + visibility = ["//visibility:public"], + runtime_deps = [":lib"], ) java_library( - name = 'lib', - exports = [ - ':api', - '//lib:guava', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:guice-servlet', - '//lib:servlet-api-3_1', - ], - visibility = ['//visibility:public'], + name = "lib", + visibility = ["//visibility:public"], + exports = [ + ":api", + "//lib:guava", + "//lib:servlet-api-3_1", + "//lib/guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:guice-servlet", + ], ) #TODO(davido): There is no provided_deps argument to java_library rule java_library( - name = 'api', - srcs = glob([SRC + '**/*.java']), - deps = [ - '//gerrit-common:annotations', - '//lib:guava', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - ], - visibility = ['//visibility:public'], + name = "api", + srcs = glob([SRC + "**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + "//gerrit-common:annotations", + "//lib:guava", + "//lib/guice", + "//lib/guice:guice-assistedinject", + ], ) -load('//tools/bzl:javadoc.bzl', 'java_doc') +load("//tools/bzl:javadoc.bzl", "java_doc") java_doc( - name = 'extension-api-javadoc', - title = 'Gerrit Review Extension API Documentation', - libs = [':api'], - pkgs = ['com.google.gerrit.extensions'], - external_docs = [JGIT_DOC_URL, GUAVA_DOC_URL], - visibility = ['//visibility:public'], + name = "extension-api-javadoc", + external_docs = [ + JGIT_DOC_URL, + GUAVA_DOC_URL, + ], + libs = [":api"], + pkgs = ["com.google.gerrit.extensions"], + title = "Gerrit Review Extension API Documentation", + visibility = ["//visibility:public"], ) diff --git a/gerrit-gpg/BUILD b/gerrit-gpg/BUILD index 8cab45cdbb..dcaf4429b3 100644 --- a/gerrit-gpg/BUILD +++ b/gerrit-gpg/BUILD @@ -1,59 +1,59 @@ -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:junit.bzl", "junit_tests") DEPS = [ - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//lib:guava', - '//lib:gwtorm', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:guice-servlet', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/log:api', + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//lib:guava", + "//lib:gwtorm", + "//lib/guice:guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:guice-servlet", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/log:api", ] java_library( - name = 'gpg', - srcs = glob(['src/main/java/**/*.java']), - deps = DEPS + [ - '//lib/bouncycastle:bcpg', - '//lib/bouncycastle:bcprov', - ], - visibility = ['//visibility:public'], + name = "gpg", + srcs = glob(["src/main/java/**/*.java"]), + visibility = ["//visibility:public"], + deps = DEPS + [ + "//lib/bouncycastle:bcpg", + "//lib/bouncycastle:bcprov", + ], ) -TESTUTIL_SRCS = glob(['src/test/**/testutil/**/*.java']) +TESTUTIL_SRCS = glob(["src/test/**/testutil/**/*.java"]) java_library( - name = 'testutil', - srcs = TESTUTIL_SRCS, - deps = DEPS + [ - ':gpg', - '//lib/bouncycastle:bcpg-without-neverlink', - '//lib/bouncycastle:bcprov-without-neverlink', - ], - visibility = ['//visibility:public'], - testonly = 1, + name = "testutil", + testonly = 1, + srcs = TESTUTIL_SRCS, + visibility = ["//visibility:public"], + deps = DEPS + [ + ":gpg", + "//lib/bouncycastle:bcpg-without-neverlink", + "//lib/bouncycastle:bcprov-without-neverlink", + ], ) junit_tests( - name = 'gpg_tests', - srcs = glob( - ['src/test/java/**/*.java'], - exclude = TESTUTIL_SRCS, - ), - deps = DEPS + [ - ':gpg', - ':testutil', - '//gerrit-cache-h2:cache-h2', - '//gerrit-lucene:lucene', - '//gerrit-server:testutil', - '//lib:truth', - '//lib/jgit/org.eclipse.jgit.junit:junit', - '//lib/bouncycastle:bcpg-without-neverlink', - '//lib/bouncycastle:bcprov-without-neverlink', - ], - visibility = ['//visibility:public'], + name = "gpg_tests", + srcs = glob( + ["src/test/java/**/*.java"], + exclude = TESTUTIL_SRCS, + ), + visibility = ["//visibility:public"], + deps = DEPS + [ + ":gpg", + ":testutil", + "//gerrit-cache-h2:cache-h2", + "//gerrit-lucene:lucene", + "//gerrit-server:testutil", + "//lib:truth", + "//lib/jgit/org.eclipse.jgit.junit:junit", + "//lib/bouncycastle:bcpg-without-neverlink", + "//lib/bouncycastle:bcprov-without-neverlink", + ], ) diff --git a/gerrit-gwtdebug/BUILD b/gerrit-gwtdebug/BUILD index a1a04b0790..115c6b995b 100644 --- a/gerrit-gwtdebug/BUILD +++ b/gerrit-gwtdebug/BUILD @@ -1,17 +1,17 @@ java_library( - name = 'gwtdebug', - srcs = glob(['src/main/java/**/*.java']), - deps = [ - '//gerrit-pgm:daemon', - '//gerrit-pgm:pgm', - '//gerrit-pgm:util', - '//gerrit-util-cli:cli', - '//lib/gwt:dev', - '//lib/jetty:server', - '//lib/jetty:servlet', - '//lib/jetty:servlets', - '//lib/log:api', - '//lib/log:log4j', - ], - visibility = ['//visibility:public'], + name = "gwtdebug", + srcs = glob(["src/main/java/**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + "//gerrit-pgm:daemon", + "//gerrit-pgm:pgm", + "//gerrit-pgm:util", + "//gerrit-util-cli:cli", + "//lib/gwt:dev", + "//lib/jetty:server", + "//lib/jetty:servlet", + "//lib/jetty:servlets", + "//lib/log:api", + "//lib/log:log4j", + ], ) diff --git a/gerrit-gwtexpui/BUILD b/gerrit-gwtexpui/BUILD index 610a10bb6f..a9a2e484e4 100644 --- a/gerrit-gwtexpui/BUILD +++ b/gerrit-gwtexpui/BUILD @@ -1,118 +1,118 @@ -load('//tools/bzl:gwt.bzl', 'gwt_module') -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:gwt.bzl", "gwt_module") +load("//tools/bzl:junit.bzl", "junit_tests") -SRC = 'src/main/java/com/google/gwtexpui/' +SRC = "src/main/java/com/google/gwtexpui/" gwt_module( - name = 'Clippy', - srcs = glob([SRC + 'clippy/client/*.java']), - gwt_xml = SRC + 'clippy/Clippy.gwt.xml', - resources = [ - SRC + 'clippy/client/clippy.css', - SRC + 'clippy/client/clippy.swf', - SRC + 'clippy/client/page_white_copy.png', - SRC + 'clippy/client/CopyableLabelText.properties', - ], - deps = [ - ':SafeHtml', - ':UserAgent', - '//lib/gwt:user-neverlink', - ], - visibility = ['//visibility:public'], - data = [ - '//lib:LICENSE-clippy', - '//lib:LICENSE-silk_icons', - ], + name = "Clippy", + srcs = glob([SRC + "clippy/client/*.java"]), + data = [ + "//lib:LICENSE-clippy", + "//lib:LICENSE-silk_icons", + ], + gwt_xml = SRC + "clippy/Clippy.gwt.xml", + resources = [ + SRC + "clippy/client/clippy.css", + SRC + "clippy/client/clippy.swf", + SRC + "clippy/client/page_white_copy.png", + SRC + "clippy/client/CopyableLabelText.properties", + ], + visibility = ["//visibility:public"], + deps = [ + ":SafeHtml", + ":UserAgent", + "//lib/gwt:user-neverlink", + ], ) java_library( - name = 'CSS', - srcs = glob([SRC + 'css/rebind/*.java']), - resources = [SRC + 'css/CSS.gwt.xml'], - deps = ['//lib/gwt:dev'], - visibility = ['//visibility:public'], + name = "CSS", + srcs = glob([SRC + "css/rebind/*.java"]), + resources = [SRC + "css/CSS.gwt.xml"], + visibility = ["//visibility:public"], + deps = ["//lib/gwt:dev"], ) gwt_module( - name = 'GlobalKey', - srcs = glob([SRC + 'globalkey/client/*.java']), - gwt_xml = SRC + 'globalkey/GlobalKey.gwt.xml', - resources = [ - SRC + 'globalkey/client/KeyConstants.properties', - SRC + 'globalkey/client/key.css', - ], - deps = [ - ':SafeHtml', - ':UserAgent', - '//lib/gwt:user', - ], - visibility = ['//visibility:public'], + name = "GlobalKey", + srcs = glob([SRC + "globalkey/client/*.java"]), + gwt_xml = SRC + "globalkey/GlobalKey.gwt.xml", + resources = [ + SRC + "globalkey/client/KeyConstants.properties", + SRC + "globalkey/client/key.css", + ], + visibility = ["//visibility:public"], + deps = [ + ":SafeHtml", + ":UserAgent", + "//lib/gwt:user", + ], ) java_library( - name = 'linker_server', - srcs = glob([SRC + 'linker/server/*.java']), - deps = ['//lib:servlet-api-3_1'], - visibility = ['//visibility:public'], + name = "linker_server", + srcs = glob([SRC + "linker/server/*.java"]), + visibility = ["//visibility:public"], + deps = ["//lib:servlet-api-3_1"], ) gwt_module( - name = 'Progress', - srcs = glob([SRC + 'progress/client/*.java']), - gwt_xml = SRC + 'progress/Progress.gwt.xml', - resources = [SRC + 'progress/client/progress.css'], - deps = ['//lib/gwt:user'], - visibility = ['//visibility:public'], + name = "Progress", + srcs = glob([SRC + "progress/client/*.java"]), + gwt_xml = SRC + "progress/Progress.gwt.xml", + resources = [SRC + "progress/client/progress.css"], + visibility = ["//visibility:public"], + deps = ["//lib/gwt:user"], ) gwt_module( - name = 'SafeHtml', - srcs = glob([SRC + 'safehtml/client/*.java']), - gwt_xml = SRC + 'safehtml/SafeHtml.gwt.xml', - resources = [SRC + 'safehtml/client/safehtml.css'], - deps = ['//lib/gwt:user'], - visibility = ['//visibility:public'], + name = "SafeHtml", + srcs = glob([SRC + "safehtml/client/*.java"]), + gwt_xml = SRC + "safehtml/SafeHtml.gwt.xml", + resources = [SRC + "safehtml/client/safehtml.css"], + visibility = ["//visibility:public"], + deps = ["//lib/gwt:user"], ) junit_tests( - name = 'SafeHtml_tests', - srcs = glob([ - 'src/test/java/com/google/gwtexpui/safehtml/client/**/*.java', - ]), - deps = [ - ':SafeHtml', - '//lib:truth', - '//lib/gwt:user', - '//lib/gwt:dev', - ], + name = "SafeHtml_tests", + srcs = glob([ + "src/test/java/com/google/gwtexpui/safehtml/client/**/*.java", + ]), + deps = [ + ":SafeHtml", + "//lib:truth", + "//lib/gwt:dev", + "//lib/gwt:user", + ], ) gwt_module( - name = 'UserAgent', - srcs = glob([SRC + 'user/client/*.java']), - gwt_xml = SRC + 'user/User.gwt.xml', - resources = [SRC + 'user/client/tooltip.css'], - deps = ['//lib/gwt:user'], - visibility = ['//visibility:public'], + name = "UserAgent", + srcs = glob([SRC + "user/client/*.java"]), + gwt_xml = SRC + "user/User.gwt.xml", + resources = [SRC + "user/client/tooltip.css"], + visibility = ["//visibility:public"], + deps = ["//lib/gwt:user"], ) java_library( - name = 'server', - srcs = glob([SRC + 'server/*.java']), - deps = ['//lib:servlet-api-3_1'], - visibility = ['//visibility:public'], + name = "server", + srcs = glob([SRC + "server/*.java"]), + visibility = ["//visibility:public"], + deps = ["//lib:servlet-api-3_1"], ) java_library( - name = 'client-src-lib', - srcs = [], - resources = glob( - [SRC + n for n in [ - 'clippy/**/*', - 'globalkey/**/*', - 'safehtml/**/*', - 'user/**/*', - ]] - ), - visibility = ['//visibility:public'], + name = "client-src-lib", + srcs = [], + resources = glob( + [SRC + n for n in [ + "clippy/**/*", + "globalkey/**/*", + "safehtml/**/*", + "user/**/*", + ]], + ), + visibility = ["//visibility:public"], ) diff --git a/gerrit-gwtui-common/BUILD b/gerrit-gwtui-common/BUILD index ac31856a0f..46262d69a5 100644 --- a/gerrit-gwtui-common/BUILD +++ b/gerrit-gwtui-common/BUILD @@ -1,59 +1,62 @@ -load('//tools/bzl:java.bzl', 'java_library2') -load('//tools/bzl:junit.bzl', 'junit_tests') -load('//tools/bzl:gwt.bzl', 'gwt_module') +load("//tools/bzl:java.bzl", "java_library2") +load("//tools/bzl:junit.bzl", "junit_tests") +load("//tools/bzl:gwt.bzl", "gwt_module") EXPORTED_DEPS = [ - '//gerrit-common:client', - '//gerrit-gwtexpui:Clippy', - '//gerrit-gwtexpui:GlobalKey', - '//gerrit-gwtexpui:Progress', - '//gerrit-gwtexpui:SafeHtml', - '//gerrit-gwtexpui:UserAgent', + "//gerrit-common:client", + "//gerrit-gwtexpui:Clippy", + "//gerrit-gwtexpui:GlobalKey", + "//gerrit-gwtexpui:Progress", + "//gerrit-gwtexpui:SafeHtml", + "//gerrit-gwtexpui:UserAgent", ] -DEPS = ['//lib/gwt:user-neverlink'] -SRC = 'src/main/java/com/google/gerrit/' + +DEPS = ["//lib/gwt:user-neverlink"] + +SRC = "src/main/java/com/google/gerrit/" gwt_module( - name = 'client', - srcs = glob(['src/main/**/*.java']), - gwt_xml = SRC + 'GerritGwtUICommon.gwt.xml', - resources = glob( - ['src/main/**/*'], - exclude = [SRC + 'client/**/*.java'] + - [SRC + 'GerritGwtUICommon.gwt.xml'] - ), - exported_deps = EXPORTED_DEPS, - deps = DEPS, - visibility = ['//visibility:public'], + name = "client", + srcs = glob(["src/main/**/*.java"]), + exported_deps = EXPORTED_DEPS, + gwt_xml = SRC + "GerritGwtUICommon.gwt.xml", + resources = glob( + ["src/main/**/*"], + exclude = [SRC + "client/**/*.java"] + [ + SRC + "GerritGwtUICommon.gwt.xml", + ], + ), + visibility = ["//visibility:public"], + deps = DEPS, ) java_library2( - name = 'client-lib', - srcs = glob(['src/main/**/*.java']), - resources = glob(['src/main/**/*']), - exported_deps = EXPORTED_DEPS, - deps = DEPS, - visibility = ['//visibility:public'], + name = "client-lib", + srcs = glob(["src/main/**/*.java"]), + exported_deps = EXPORTED_DEPS, + resources = glob(["src/main/**/*"]), + visibility = ["//visibility:public"], + deps = DEPS, ) java_library( - name = 'diffy_logo', - resources = glob(['src/main/resources/com/google/gerrit/client/diffy*.png']), - data = [ - '//lib:LICENSE-diffy', - '//lib:LICENSE-CC-BY3.0-unported', - ], - visibility = ['//visibility:public'], + name = "diffy_logo", + data = [ + "//lib:LICENSE-CC-BY3.0-unported", + "//lib:LICENSE-diffy", + ], + resources = glob(["src/main/resources/com/google/gerrit/client/diffy*.png"]), + visibility = ["//visibility:public"], ) junit_tests( - name = 'client_tests', - srcs = glob(['src/test/java/**/*.java']), - deps = [ - ':client', - '//lib:junit', - '//lib/gwt:dev', - '//lib/jgit/org.eclipse.jgit:jgit', - ], - visibility = ['//visibility:public'], + name = "client_tests", + srcs = glob(["src/test/java/**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + ":client", + "//lib:junit", + "//lib/gwt:dev", + "//lib/jgit/org.eclipse.jgit:jgit", + ], ) diff --git a/gerrit-gwtui/BUILD b/gerrit-gwtui/BUILD index 9e04609818..721b64609e 100644 --- a/gerrit-gwtui/BUILD +++ b/gerrit-gwtui/BUILD @@ -1,31 +1,40 @@ -load('//tools/bzl:gwt.bzl', 'gwt_genrule', 'gen_ui_module', - 'gwt_user_agent_permutations') -load('//tools/bzl:license.bzl', 'license_test') -load('//tools/bzl:junit.bzl', 'junit_tests') +load( + "//tools/bzl:gwt.bzl", + "gwt_genrule", + "gen_ui_module", + "gwt_user_agent_permutations", +) +load("//tools/bzl:license.bzl", "license_test") +load("//tools/bzl:junit.bzl", "junit_tests") gwt_genrule() -gwt_genrule('_r') -gen_ui_module(name = 'ui_module') -gen_ui_module(name = 'ui_module', suffix = '_r') +gwt_genrule("_r") + +gen_ui_module(name = "ui_module") + +gen_ui_module( + name = "ui_module", + suffix = "_r", +) gwt_user_agent_permutations() license_test( - name = "ui_module_license_test", - target = ":ui_module", + name = "ui_module_license_test", + target = ":ui_module", ) junit_tests( - name = 'ui_tests', - srcs = glob(['src/test/java/**/*.java']), - deps = [ - ':ui_module', - '//gerrit-common:client', - '//gerrit-extension-api:client', - '//lib:junit', - '//lib/gwt:dev', - '//lib/gwt:user', - ], - visibility = ['//visibility:public'], + name = "ui_tests", + srcs = glob(["src/test/java/**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + ":ui_module", + "//gerrit-common:client", + "//gerrit-extension-api:client", + "//lib:junit", + "//lib/gwt:dev", + "//lib/gwt:user", + ], ) diff --git a/gerrit-httpd/BUILD b/gerrit-httpd/BUILD index 7b20e701e4..6244b5bd34 100644 --- a/gerrit-httpd/BUILD +++ b/gerrit-httpd/BUILD @@ -1,76 +1,77 @@ package( - default_visibility=["//visibility:public"] + default_visibility = ["//visibility:public"], ) -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:junit.bzl", "junit_tests") SRCS = glob( - ['src/main/java/**/*.java'], + ["src/main/java/**/*.java"], ) -RESOURCES = glob(['src/main/resources/**/*']) + +RESOURCES = glob(["src/main/resources/**/*"]) java_library( - name = 'httpd', - srcs = SRCS, - resources = RESOURCES, - deps = [ - '//gerrit-antlr:query_exception', - '//gerrit-common:annotations', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-gwtexpui:linker_server', - '//gerrit-gwtexpui:server', - '//gerrit-launcher:launcher', - '//gerrit-patch-jgit:server', - '//gerrit-prettify:server', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//gerrit-util-cli:cli', - '//gerrit-util-http:http', - '//lib:args4j', - '//lib:gson', - '//lib:guava', - '//lib:gwtjsonrpc', - '//lib:gwtorm', - '//lib:jsch', - '//lib:mime-util', - '//lib:servlet-api-3_1', - '//lib/auto:auto-value', - '//lib/commons:codec', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:guice-servlet', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/jgit/org.eclipse.jgit.http.server:jgit-servlet', - '//lib/log:api', - '//lib/lucene:lucene-core-and-backward-codecs', - ], - visibility = ['//visibility:public'], + name = "httpd", + srcs = SRCS, + resources = RESOURCES, + visibility = ["//visibility:public"], + deps = [ + "//gerrit-antlr:query_exception", + "//gerrit-common:annotations", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-gwtexpui:linker_server", + "//gerrit-gwtexpui:server", + "//gerrit-launcher:launcher", + "//gerrit-patch-jgit:server", + "//gerrit-prettify:server", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//gerrit-util-cli:cli", + "//gerrit-util-http:http", + "//lib:args4j", + "//lib:gson", + "//lib:guava", + "//lib:gwtjsonrpc", + "//lib:gwtorm", + "//lib:jsch", + "//lib:mime-util", + "//lib:servlet-api-3_1", + "//lib/auto:auto-value", + "//lib/commons:codec", + "//lib/guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:guice-servlet", + "//lib/jgit/org.eclipse.jgit.http.server:jgit-servlet", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/log:api", + "//lib/lucene:lucene-core-and-backward-codecs", + ], ) junit_tests( - name = 'httpd_tests', - srcs = glob(['src/test/java/**/*.java']), - deps = [ - ':httpd', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//gerrit-util-http:http', - '//gerrit-util-http:testutil', - '//lib:jimfs', - '//lib:junit', - '//lib:gson', - '//lib:gwtorm', - '//lib:guava', - '//lib:servlet-api-3_1-without-neverlink', - '//lib:truth', - '//lib/easymock:easymock', - '//lib/guice:guice', - '//lib/guice:guice-servlet', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/jgit/org.eclipse.jgit.junit:junit', - '//lib/joda:joda-time', - ], + name = "httpd_tests", + srcs = glob(["src/test/java/**/*.java"]), + deps = [ + ":httpd", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//gerrit-util-http:http", + "//gerrit-util-http:testutil", + "//lib:gson", + "//lib:guava", + "//lib:gwtorm", + "//lib:jimfs", + "//lib:junit", + "//lib:servlet-api-3_1-without-neverlink", + "//lib:truth", + "//lib/easymock", + "//lib/guice", + "//lib/guice:guice-servlet", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/jgit/org.eclipse.jgit.junit:junit", + "//lib/joda:joda-time", + ], ) diff --git a/gerrit-launcher/BUILD b/gerrit-launcher/BUILD index cf1e788b20..33b779edd4 100644 --- a/gerrit-launcher/BUILD +++ b/gerrit-launcher/BUILD @@ -1,19 +1,19 @@ # NOTE: GerritLauncher must be a single, self-contained class. Do not add any # additional srcs or deps to this rule. java_library( - name = 'launcher', - srcs = ['src/main/java/com/google/gerrit/launcher/GerritLauncher.java'], - resources = [':workspace-root.txt'], - visibility = ['//visibility:public'], + name = "launcher", + srcs = ["src/main/java/com/google/gerrit/launcher/GerritLauncher.java"], + resources = [":workspace-root.txt"], + visibility = ["//visibility:public"], ) # The root of the workspace is non-hermetic, but we need it for # on-the-fly GWT recompiles and PolyGerrit updates. genrule( - name = 'gen_root', - stamp = 1, - cmd = ("cat bazel-out/stable-status.txt | " + - "grep STABLE_WORKSPACE_ROOT | cut -d ' ' -f 2 > $@"), - outs = ['workspace-root.txt'], - visibility = ['//visibility:public'], + name = "gen_root", + outs = ["workspace-root.txt"], + cmd = ("cat bazel-out/stable-status.txt | " + + "grep STABLE_WORKSPACE_ROOT | cut -d ' ' -f 2 > $@"), + stamp = 1, + visibility = ["//visibility:public"], ) diff --git a/gerrit-lucene/BUILD b/gerrit-lucene/BUILD index 2f1cba77eb..5f87b4e9b3 100644 --- a/gerrit-lucene/BUILD +++ b/gerrit-lucene/BUILD @@ -1,41 +1,44 @@ QUERY_BUILDER = [ - 'src/main/java/com/google/gerrit/lucene/QueryBuilder.java', + "src/main/java/com/google/gerrit/lucene/QueryBuilder.java", ] java_library( - name = 'query_builder', - srcs = QUERY_BUILDER, - deps = [ - '//gerrit-antlr:query_exception', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//lib:gwtorm', - '//lib:guava', - '//lib/lucene:lucene-core-and-backward-codecs', - ], - visibility = ['//visibility:public'], + name = "query_builder", + srcs = QUERY_BUILDER, + visibility = ["//visibility:public"], + deps = [ + "//gerrit-antlr:query_exception", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//lib:guava", + "//lib:gwtorm", + "//lib/lucene:lucene-core-and-backward-codecs", + ], ) java_library( - name = 'lucene', - srcs = glob(['src/main/java/**/*.java'], exclude = QUERY_BUILDER), - deps = [ - ':query_builder', - '//gerrit-antlr:query_exception', - '//gerrit-common:annotations', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//lib:guava', - '//lib:gwtorm', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/log:api', - '//lib/lucene:lucene-analyzers-common', - '//lib/lucene:lucene-core-and-backward-codecs', - '//lib/lucene:lucene-misc', - ], - visibility = ['//visibility:public'], + name = "lucene", + srcs = glob( + ["src/main/java/**/*.java"], + exclude = QUERY_BUILDER, + ), + visibility = ["//visibility:public"], + deps = [ + ":query_builder", + "//gerrit-antlr:query_exception", + "//gerrit-common:annotations", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//lib:guava", + "//lib:gwtorm", + "//lib/guice", + "//lib/guice:guice-assistedinject", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/log:api", + "//lib/lucene:lucene-analyzers-common", + "//lib/lucene:lucene-core-and-backward-codecs", + "//lib/lucene:lucene-misc", + ], ) diff --git a/gerrit-main/BUILD b/gerrit-main/BUILD index 67863c5626..243a70b466 100644 --- a/gerrit-main/BUILD +++ b/gerrit-main/BUILD @@ -1,13 +1,13 @@ java_binary( - name = 'main_bin', - main_class = 'Main', - runtime_deps = [':main_lib'], - visibility = ['//visibility:public'], + name = "main_bin", + main_class = "Main", + visibility = ["//visibility:public"], + runtime_deps = [":main_lib"], ) java_library( - name = 'main_lib', - srcs = ['src/main/java/Main.java'], - deps = ['//gerrit-launcher:launcher'], - visibility = ['//visibility:public'], + name = "main_lib", + srcs = ["src/main/java/Main.java"], + visibility = ["//visibility:public"], + deps = ["//gerrit-launcher:launcher"], ) diff --git a/gerrit-oauth/BUILD b/gerrit-oauth/BUILD index b2cf17b40d..b459c70ad8 100644 --- a/gerrit-oauth/BUILD +++ b/gerrit-oauth/BUILD @@ -1,26 +1,27 @@ SRCS = glob( - ['src/main/java/**/*.java'], + ["src/main/java/**/*.java"], ) -RESOURCES = glob(['src/main/resources/**/*']) + +RESOURCES = glob(["src/main/resources/**/*"]) java_library( - name = 'oauth', - srcs = SRCS, - resources = RESOURCES, - deps = [ - '//gerrit-common:annotations', - '//gerrit-extension-api:api', - '//gerrit-httpd:httpd', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//lib:gson', - '//lib:guava', - '//lib:gwtorm', - '//lib/commons:codec', - '//lib/guice:guice', - '//lib/guice:guice-servlet', - '//lib/log:api', - '//lib:servlet-api-3_1', - ], - visibility = ['//visibility:public'], + name = "oauth", + srcs = SRCS, + resources = RESOURCES, + visibility = ["//visibility:public"], + deps = [ + "//gerrit-common:annotations", + "//gerrit-extension-api:api", + "//gerrit-httpd:httpd", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//lib:gson", + "//lib:guava", + "//lib:gwtorm", + "//lib:servlet-api-3_1", + "//lib/commons:codec", + "//lib/guice", + "//lib/guice:guice-servlet", + "//lib/log:api", + ], ) diff --git a/gerrit-openid/BUILD b/gerrit-openid/BUILD index b5ae0495cb..7b0d2b1e59 100644 --- a/gerrit-openid/BUILD +++ b/gerrit-openid/BUILD @@ -1,24 +1,25 @@ java_library( - name = 'openid', - srcs = glob(['src/main/java/**/*.java']), - resources = glob(['src/main/resources/**/*']), - deps = [ # We want all these deps to be provided_deps - '//gerrit-common:annotations', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-gwtexpui:server', - '//gerrit-httpd:httpd', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//lib:guava', - '//lib:gwtorm', - '//lib:servlet-api-3_1', - '//lib/commons:codec', - '//lib/guice:guice', - '//lib/guice:guice-servlet', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/log:api', - '//lib/openid:consumer', - ], - visibility = ['//visibility:public'], + name = "openid", + srcs = glob(["src/main/java/**/*.java"]), + resources = glob(["src/main/resources/**/*"]), + visibility = ["//visibility:public"], + deps = [ + # We want all these deps to be provided_deps + "//gerrit-common:annotations", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-gwtexpui:server", + "//gerrit-httpd:httpd", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//lib:guava", + "//lib:gwtorm", + "//lib:servlet-api-3_1", + "//lib/commons:codec", + "//lib/guice", + "//lib/guice:guice-servlet", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/log:api", + "//lib/openid:consumer", + ], ) diff --git a/gerrit-patch-commonsnet/BUILD b/gerrit-patch-commonsnet/BUILD index c5e541d103..7524bfe6cb 100644 --- a/gerrit-patch-commonsnet/BUILD +++ b/gerrit-patch-commonsnet/BUILD @@ -1,11 +1,11 @@ java_library( - name = 'commons-net', - srcs = glob(['src/main/java/org/apache/commons/net/**/*.java']), - deps = [ - '//gerrit-util-ssl:ssl', - '//lib/commons:codec', - '//lib/commons:net', - '//lib/log:api', - ], - visibility = ['//visibility:public'], + name = "commons-net", + srcs = glob(["src/main/java/org/apache/commons/net/**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + "//gerrit-util-ssl:ssl", + "//lib/commons:codec", + "//lib/commons:net", + "//lib/log:api", + ], ) diff --git a/gerrit-patch-jgit/BUILD b/gerrit-patch-jgit/BUILD index f908d83df9..e3d3cbdbcf 100644 --- a/gerrit-patch-jgit/BUILD +++ b/gerrit-patch-jgit/BUILD @@ -1,66 +1,67 @@ -load('//tools/bzl:genrule2.bzl', 'genrule2') -load('//tools/bzl:gwt.bzl', 'gwt_module') +load("//tools/bzl:genrule2.bzl", "genrule2") +load("//tools/bzl:gwt.bzl", "gwt_module") -SRC = 'src/main/java/org/eclipse/jgit/' +SRC = "src/main/java/org/eclipse/jgit/" gwt_module( - name = 'client', - srcs = [ - SRC + 'diff/Edit_JsonSerializer.java', - SRC + 'diff/ReplaceEdit.java', - ], - gwt_xml = SRC + 'JGit.gwt.xml', - deps = [ - ':Edit', - '//lib/gwt:user', - '//lib:gwtjsonrpc', - ], - visibility = ['//visibility:public'], + name = "client", + srcs = [ + SRC + "diff/Edit_JsonSerializer.java", + SRC + "diff/ReplaceEdit.java", + ], + gwt_xml = SRC + "JGit.gwt.xml", + visibility = ["//visibility:public"], + deps = [ + ":Edit", + "//lib:gwtjsonrpc", + "//lib/gwt:user", + ], ) gwt_module( - name = 'Edit', - srcs = [':jgit_edit_src'], - visibility = ['//visibility:public'], + name = "Edit", + srcs = [":jgit_edit_src"], + visibility = ["//visibility:public"], ) genrule2( - name = 'jgit_edit_src', - cmd = ' && '.join([ - 'unzip -qd $$TMP $(location @jgit//jar:src) ' + - 'org/eclipse/jgit/diff/Edit.java', - 'cd $$TMP', - 'zip -Dq $$ROOT/$@ org/eclipse/jgit/diff/Edit.java', - ]), - tools = ['@jgit//jar:src'], - outs = [ 'edit.srcjar' ], + name = "jgit_edit_src", + outs = ["edit.srcjar"], + cmd = " && ".join([ + "unzip -qd $$TMP $(location @jgit//jar:src) " + + "org/eclipse/jgit/diff/Edit.java", + "cd $$TMP", + "zip -Dq $$ROOT/$@ org/eclipse/jgit/diff/Edit.java", + ]), + tools = ["@jgit//jar:src"], ) java_library( - name = 'server', - srcs = [ - SRC + x for x in [ - 'diff/EditDeserializer.java', - 'diff/ReplaceEdit.java', - 'internal/storage/file/WindowCacheStatAccessor.java', - 'lib/ObjectIdSerialization.java', - ] - ], - deps = [ - '//lib:gson', - '//lib/jgit/org.eclipse.jgit:jgit', - ], - visibility = ['//visibility:public'], + name = "server", + srcs = [ + SRC + x + for x in [ + "diff/EditDeserializer.java", + "diff/ReplaceEdit.java", + "internal/storage/file/WindowCacheStatAccessor.java", + "lib/ObjectIdSerialization.java", + ] + ], + visibility = ["//visibility:public"], + deps = [ + "//lib:gson", + "//lib/jgit/org.eclipse.jgit:jgit", + ], ) java_test( - name = 'jgit_patch_tests', - test_class = 'org.eclipse.jgit.diff.EditDeserializerTest', - srcs = glob(['src/test/java/**/*.java']), - deps = [ - ':server', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib:junit', - ], - visibility = ['//visibility:public'], + name = "jgit_patch_tests", + srcs = glob(["src/test/java/**/*.java"]), + test_class = "org.eclipse.jgit.diff.EditDeserializerTest", + visibility = ["//visibility:public"], + deps = [ + ":server", + "//lib:junit", + "//lib/jgit/org.eclipse.jgit:jgit", + ], ) diff --git a/gerrit-pgm/BUILD b/gerrit-pgm/BUILD index eef7dcb07c..a382fbfd12 100644 --- a/gerrit-pgm/BUILD +++ b/gerrit-pgm/BUILD @@ -1,169 +1,175 @@ -load('//tools/bzl:java.bzl', 'java_library2') -load('//tools/bzl:junit.bzl', 'junit_tests') -load('//tools/bzl:license.bzl', 'license_test') +load("//tools/bzl:java.bzl", "java_library2") +load("//tools/bzl:junit.bzl", "junit_tests") +load("//tools/bzl:license.bzl", "license_test") -SRCS = 'src/main/java/com/google/gerrit/pgm/' -RSRCS = 'src/main/resources/com/google/gerrit/pgm/' +SRCS = "src/main/java/com/google/gerrit/pgm/" -INIT_API_SRCS = glob([SRCS + 'init/api/*.java']) +RSRCS = "src/main/resources/com/google/gerrit/pgm/" + +INIT_API_SRCS = glob([SRCS + "init/api/*.java"]) BASE_JETTY_DEPS = [ - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-gwtexpui:linker_server', - '//gerrit-gwtexpui:server', - '//gerrit-httpd:httpd', - '//gerrit-server:server', - '//gerrit-sshd:sshd', - '//lib:guava', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:guice-servlet', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/joda:joda-time', - '//lib/log:api', - '//lib/log:log4j', + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-gwtexpui:linker_server", + "//gerrit-gwtexpui:server", + "//gerrit-httpd:httpd", + "//gerrit-server:server", + "//gerrit-sshd:sshd", + "//lib:guava", + "//lib/guice:guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:guice-servlet", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/joda:joda-time", + "//lib/log:api", + "//lib/log:log4j", ] DEPS = BASE_JETTY_DEPS + [ - '//gerrit-reviewdb:server', - '//lib/log:jsonevent-layout', + "//gerrit-reviewdb:server", + "//lib/log:jsonevent-layout", ] java_library( - name = 'init-api', - srcs = INIT_API_SRCS, - deps = DEPS + ['//gerrit-common:annotations'], - visibility = ['//visibility:public'], + name = "init-api", + srcs = INIT_API_SRCS, + visibility = ["//visibility:public"], + deps = DEPS + ["//gerrit-common:annotations"], ) java_library( - name = 'init', - srcs = glob([SRCS + 'init/*.java']), - resources = glob([RSRCS + 'init/*']), - deps = DEPS + [ - ':init-api', - ':util', - '//gerrit-common:annotations', - '//gerrit-launcher:launcher', # We want this dep to be provided_deps - '//gerrit-lucene:lucene', - '//lib:args4j', - '//lib:derby', - '//lib:gwtjsonrpc', - '//lib:gwtorm', - '//lib:h2', - '//lib/commons:validator', - '//lib/mina:sshd', - ], - visibility = ['//visibility:public'], + name = "init", + srcs = glob([SRCS + "init/*.java"]), + resources = glob([RSRCS + "init/*"]), + visibility = ["//visibility:public"], + deps = DEPS + [ + ":init-api", + ":util", + "//gerrit-common:annotations", + "//gerrit-launcher:launcher", # We want this dep to be provided_deps + "//gerrit-lucene:lucene", + "//lib:args4j", + "//lib:derby", + "//lib:gwtjsonrpc", + "//lib:gwtorm", + "//lib:h2", + "//lib/commons:validator", + "//lib/mina:sshd", + ], ) REST_UTIL_DEPS = [ - '//gerrit-cache-h2:cache-h2', - '//gerrit-util-cli:cli', - '//lib:args4j', - '//lib:gwtorm', - '//lib/commons:dbcp', + "//gerrit-cache-h2:cache-h2", + "//gerrit-util-cli:cli", + "//lib:args4j", + "//lib:gwtorm", + "//lib/commons:dbcp", ] java_library( - name = 'util', - exports = [':util-nodep'], - runtime_deps = DEPS + REST_UTIL_DEPS, - visibility = ['//visibility:public'], + name = "util", + visibility = ["//visibility:public"], + exports = [":util-nodep"], + runtime_deps = DEPS + REST_UTIL_DEPS, ) java_library( - name = 'util-nodep', - srcs = glob([SRCS + 'util/*.java']), - deps = DEPS + REST_UTIL_DEPS, # We want all these deps to be provided_deps - visibility = ['//visibility:public'], + name = "util-nodep", + srcs = glob([SRCS + "util/*.java"]), + visibility = ["//visibility:public"], + deps = DEPS + REST_UTIL_DEPS, # We want all these deps to be provided_deps ) JETTY_DEPS = [ - '//lib/jetty:jmx', - '//lib/jetty:server', - '//lib/jetty:servlet', + "//lib/jetty:jmx", + "//lib/jetty:server", + "//lib/jetty:servlet", ] java_library( - name = 'http', - runtime_deps = DEPS + JETTY_DEPS, - exports = [':http-jetty'], - visibility = ['//visibility:public'], + name = "http", + visibility = ["//visibility:public"], + exports = [":http-jetty"], + runtime_deps = DEPS + JETTY_DEPS, ) java_library( - name = 'http-jetty', - srcs = glob([SRCS + 'http/jetty/*.java']), - deps = JETTY_DEPS + BASE_JETTY_DEPS + [ # We want all these deps to be provided_deps - '//gerrit-launcher:launcher', - '//gerrit-reviewdb:client', - '//lib:servlet-api-3_1', - ], - visibility = ['//visibility:public'], + name = "http-jetty", + srcs = glob([SRCS + "http/jetty/*.java"]), + visibility = ["//visibility:public"], + deps = JETTY_DEPS + BASE_JETTY_DEPS + [ + # We want all these deps to be provided_deps + "//gerrit-launcher:launcher", + "//gerrit-reviewdb:client", + "//lib:servlet-api-3_1", + ], ) REST_PGM_DEPS = [ - ':http', - ':init', - ':init-api', - ':util', - '//gerrit-cache-h2:cache-h2', - '//gerrit-elasticsearch:elasticsearch', - '//gerrit-gpg:gpg', - '//gerrit-lucene:lucene', - '//gerrit-oauth:oauth', - '//gerrit-openid:openid', - '//lib:args4j', - '//lib:gwtorm', - '//lib:protobuf', - '//lib:servlet-api-3_1-without-neverlink', - '//lib/prolog:cafeteria', - '//lib/prolog:compiler', - '//lib/prolog:runtime', + ":http", + ":init", + ":init-api", + ":util", + "//gerrit-cache-h2:cache-h2", + "//gerrit-elasticsearch:elasticsearch", + "//gerrit-gpg:gpg", + "//gerrit-lucene:lucene", + "//gerrit-oauth:oauth", + "//gerrit-openid:openid", + "//lib:args4j", + "//lib:gwtorm", + "//lib:protobuf", + "//lib:servlet-api-3_1-without-neverlink", + "//lib/prolog:cafeteria", + "//lib/prolog:compiler", + "//lib/prolog:runtime", ] java_library( - name = 'pgm', - resources = glob([RSRCS + '*']), - runtime_deps = DEPS + REST_PGM_DEPS + [ - ':daemon', - ], - visibility = ['//visibility:public'], + name = "pgm", + resources = glob([RSRCS + "*"]), + visibility = ["//visibility:public"], + runtime_deps = DEPS + REST_PGM_DEPS + [ + ":daemon", + ], ) # no transitive deps, used for gerrit-acceptance-framework java_library( - name = 'daemon', - srcs = glob([SRCS + '*.java', SRCS + 'rules/*.java']), - resources = glob([RSRCS + '*']), - deps = DEPS + REST_PGM_DEPS + [ # We want all these deps to be provided_deps - '//gerrit-launcher:launcher', - '//lib/auto:auto-value', - ], - visibility = ['//visibility:public'], + name = "daemon", + srcs = glob([ + SRCS + "*.java", + SRCS + "rules/*.java", + ]), + resources = glob([RSRCS + "*"]), + visibility = ["//visibility:public"], + deps = DEPS + REST_PGM_DEPS + [ + # We want all these deps to be provided_deps + "//gerrit-launcher:launcher", + "//lib/auto:auto-value", + ], ) junit_tests( - name = 'pgm_tests', - srcs = glob(['src/test/java/**/*.java']), - deps = [ - ':init', - ':init-api', - ':pgm', - '//gerrit-common:server', - '//gerrit-server:server', - '//lib:guava', - '//lib:junit', - '//lib/easymock:easymock', - '//lib/guice:guice', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/jgit/org.eclipse.jgit.junit:junit', - ], + name = "pgm_tests", + srcs = glob(["src/test/java/**/*.java"]), + deps = [ + ":init", + ":init-api", + ":pgm", + "//gerrit-common:server", + "//gerrit-server:server", + "//lib:guava", + "//lib:junit", + "//lib/easymock", + "//lib/guice", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/jgit/org.eclipse.jgit.junit:junit", + ], ) license_test( - name = "pgm_license_test", - target = ":pgm", + name = "pgm_license_test", + target = ":pgm", ) diff --git a/gerrit-plugin-api/BUILD b/gerrit-plugin-api/BUILD index e231a021a2..78f065bb96 100644 --- a/gerrit-plugin-api/BUILD +++ b/gerrit-plugin-api/BUILD @@ -1,107 +1,107 @@ SRCS = [ - 'gerrit-server/src/main/java/', - 'gerrit-httpd/src/main/java/', - 'gerrit-sshd/src/main/java/', + "gerrit-server/src/main/java/", + "gerrit-httpd/src/main/java/", + "gerrit-sshd/src/main/java/", ] PLUGIN_API = [ - '//gerrit-httpd:httpd', - '//gerrit-pgm:init-api', - '//gerrit-server:server', - '//gerrit-sshd:sshd', + "//gerrit-httpd:httpd", + "//gerrit-pgm:init-api", + "//gerrit-server:server", + "//gerrit-sshd:sshd", ] EXPORTS = [ - '//gerrit-antlr:query_exception', - '//gerrit-antlr:query_parser', - '//gerrit-common:annotations', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-gwtexpui:server', - '//gerrit-reviewdb:server', - '//lib/commons:lang', - '//lib/dropwizard:dropwizard-core', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:guice-servlet', - '//lib/guice:javax-inject', - '//lib/guice:multibindings', - '//lib/jgit/org.eclipse.jgit.http.server:jgit-servlet', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/joda:joda-time', - '//lib/log:api', - '//lib/log:log4j', - '//lib/mina:sshd', - '//lib/ow2:ow2-asm', - '//lib/ow2:ow2-asm-analysis', - '//lib/ow2:ow2-asm-commons', - '//lib/ow2:ow2-asm-util', - '//lib:args4j', - '//lib:blame-cache', - '//lib:guava', - '//lib:gson', - '//lib:gwtorm', - '//lib:icu4j', - '//lib:jsch', - '//lib:mime-util', - '//lib:protobuf', - '//lib:servlet-api-3_1', - '//lib:soy', - '//lib:velocity', + "//gerrit-antlr:query_exception", + "//gerrit-antlr:query_parser", + "//gerrit-common:annotations", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-gwtexpui:server", + "//gerrit-reviewdb:server", + "//lib/commons:lang", + "//lib/dropwizard:dropwizard-core", + "//lib/guice:guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:guice-servlet", + "//lib/guice:javax-inject", + "//lib/guice:multibindings", + "//lib/jgit/org.eclipse.jgit.http.server:jgit-servlet", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/joda:joda-time", + "//lib/log:api", + "//lib/log:log4j", + "//lib/mina:sshd", + "//lib/ow2:ow2-asm", + "//lib/ow2:ow2-asm-analysis", + "//lib/ow2:ow2-asm-commons", + "//lib/ow2:ow2-asm-util", + "//lib:args4j", + "//lib:blame-cache", + "//lib:guava", + "//lib:gson", + "//lib:gwtorm", + "//lib:icu4j", + "//lib:jsch", + "//lib:mime-util", + "//lib:protobuf", + "//lib:servlet-api-3_1", + "//lib:soy", + "//lib:velocity", ] java_binary( - name = 'plugin-api', - main_class = 'Dummy', - runtime_deps = [':lib'], - visibility = ['//visibility:public'], + name = "plugin-api", + main_class = "Dummy", + visibility = ["//visibility:public"], + runtime_deps = [":lib"], ) java_library( - name = 'lib', - exports = PLUGIN_API + EXPORTS, - visibility = ['//visibility:public'], + name = "lib", + visibility = ["//visibility:public"], + exports = PLUGIN_API + EXPORTS, ) java_library( - name = 'lib-neverlink', - neverlink = 1, - exports = PLUGIN_API + EXPORTS, - visibility = ['//visibility:public'], + name = "lib-neverlink", + neverlink = 1, + visibility = ["//visibility:public"], + exports = PLUGIN_API + EXPORTS, ) java_binary( - name = 'plugin-api-sources', - main_class = 'Dummy', - runtime_deps = [ - '//gerrit-antlr:libquery_exception-src.jar', - '//gerrit-antlr:libquery_parser-src.jar', - '//gerrit-common:libannotations-src.jar', - '//gerrit-extension-api:libapi-src.jar', - '//gerrit-gwtexpui:libserver-src.jar', - '//gerrit-httpd:libhttpd-src.jar', - '//gerrit-pgm:libinit-api-src.jar', - '//gerrit-reviewdb:libserver-src.jar', - '//gerrit-server:libserver-src.jar', - '//gerrit-sshd:libsshd-src.jar', - ], - visibility = ['//visibility:public'], + name = "plugin-api-sources", + main_class = "Dummy", + visibility = ["//visibility:public"], + runtime_deps = [ + "//gerrit-antlr:libquery_exception-src.jar", + "//gerrit-antlr:libquery_parser-src.jar", + "//gerrit-common:libannotations-src.jar", + "//gerrit-extension-api:libapi-src.jar", + "//gerrit-gwtexpui:libserver-src.jar", + "//gerrit-httpd:libhttpd-src.jar", + "//gerrit-pgm:libinit-api-src.jar", + "//gerrit-reviewdb:libserver-src.jar", + "//gerrit-server:libserver-src.jar", + "//gerrit-sshd:libsshd-src.jar", + ], ) -load('//tools/bzl:javadoc.bzl', 'java_doc') +load("//tools/bzl:javadoc.bzl", "java_doc") java_doc( - name = 'plugin-api-javadoc', - title = 'Gerrit Review Plugin API Documentation', - pkgs = ['com.google.gerrit'], - libs = PLUGIN_API + [ - '//gerrit-antlr:query_exception', - '//gerrit-antlr:query_parser', - '//gerrit-common:annotations', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-gwtexpui:server', - '//gerrit-reviewdb:server', - ], - visibility = ['//visibility:public'], + name = "plugin-api-javadoc", + libs = PLUGIN_API + [ + "//gerrit-antlr:query_exception", + "//gerrit-antlr:query_parser", + "//gerrit-common:annotations", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-gwtexpui:server", + "//gerrit-reviewdb:server", + ], + pkgs = ["com.google.gerrit"], + title = "Gerrit Review Plugin API Documentation", + visibility = ["//visibility:public"], ) diff --git a/gerrit-plugin-gwtui/BUILD b/gerrit-plugin-gwtui/BUILD index 01d9385681..f8960502aa 100644 --- a/gerrit-plugin-gwtui/BUILD +++ b/gerrit-plugin-gwtui/BUILD @@ -1,78 +1,80 @@ -package(default_visibility = ['//visibility:public']) -load('//tools/bzl:java.bzl', 'java_library2') +package(default_visibility = ["//visibility:public"]) -SRCS = glob(['src/main/java/com/google/gerrit/**/*.java']) -DEPS = ['//lib/gwt:user-neverlink'] +load("//tools/bzl:java.bzl", "java_library2") + +SRCS = glob(["src/main/java/com/google/gerrit/**/*.java"]) + +DEPS = ["//lib/gwt:user-neverlink"] java_binary( - name = 'gwtui-api', - main_class = 'Dummy', - runtime_deps = [ - ':gwtui-api-lib', - '//gerrit-gwtui-common:client-lib', - ], + name = "gwtui-api", + main_class = "Dummy", + runtime_deps = [ + ":gwtui-api-lib", + "//gerrit-gwtui-common:client-lib", + ], ) java_library2( - name = 'gwtui-api-lib', - srcs = SRCS, - resources = glob(['src/main/**/*']), - exported_deps = ['//gerrit-gwtui-common:client-lib'], - deps = DEPS + [ - '//gerrit-common:libclient-src.jar', - '//gerrit-extension-api:libclient-src.jar', - '//gerrit-gwtexpui:libClippy-src.jar', - '//gerrit-gwtexpui:libGlobalKey-src.jar', - '//gerrit-gwtexpui:libProgress-src.jar', - '//gerrit-gwtexpui:libSafeHtml-src.jar', - '//gerrit-gwtexpui:libUserAgent-src.jar', - '//gerrit-gwtui-common:libclient-src.jar', - '//gerrit-patch-jgit:libclient-src.jar', - '//gerrit-patch-jgit:libEdit-src.jar', - '//gerrit-prettify:libclient-src.jar', - '//gerrit-reviewdb:libclient-src.jar', - '//lib/gwt:dev-neverlink', - ], + name = "gwtui-api-lib", + srcs = SRCS, + exported_deps = ["//gerrit-gwtui-common:client-lib"], + resources = glob(["src/main/**/*"]), + deps = DEPS + [ + "//gerrit-common:libclient-src.jar", + "//gerrit-extension-api:libclient-src.jar", + "//gerrit-gwtexpui:libClippy-src.jar", + "//gerrit-gwtexpui:libGlobalKey-src.jar", + "//gerrit-gwtexpui:libProgress-src.jar", + "//gerrit-gwtexpui:libSafeHtml-src.jar", + "//gerrit-gwtexpui:libUserAgent-src.jar", + "//gerrit-gwtui-common:libclient-src.jar", + "//gerrit-patch-jgit:libclient-src.jar", + "//gerrit-patch-jgit:libEdit-src.jar", + "//gerrit-prettify:libclient-src.jar", + "//gerrit-reviewdb:libclient-src.jar", + "//lib/gwt:dev-neverlink", + ], ) java_library2( - name = 'gwtui-api-lib-neverlink', - srcs = SRCS, - resources = glob(['src/main/**/*']), - exported_deps = ['//gerrit-gwtui-common:client-lib'], - neverlink = 1, # we want this to be exported deps - deps = DEPS + ['//lib/gwt:dev'], + name = "gwtui-api-lib-neverlink", + srcs = SRCS, + exported_deps = ["//gerrit-gwtui-common:client-lib"], + neverlink = 1, # we want this to be exported deps + resources = glob(["src/main/**/*"]), + deps = DEPS + ["//lib/gwt:dev"], ) java_binary( - name = 'gwtui-api-source', - main_class = 'Dummy', - runtime_deps = [ - ':libgwtui-api-lib-src.jar', - '//gerrit-gwtexpui:client-src-lib', - '//gerrit-gwtui-common:libclient-lib-src.jar', - ], + name = "gwtui-api-source", + main_class = "Dummy", + runtime_deps = [ + ":libgwtui-api-lib-src.jar", + "//gerrit-gwtexpui:client-src-lib", + "//gerrit-gwtui-common:libclient-lib-src.jar", + ], ) -load('//tools/bzl:javadoc.bzl', 'java_doc') +load("//tools/bzl:javadoc.bzl", "java_doc") java_doc( - name = 'gwtui-api-javadoc', - title = 'Gerrit Review GWT Extension API Documentation', - pkgs = [ - 'com.google.gerrit.plugin', - 'com.google.gwtexpui.clippy', - 'com.google.gwtexpui.globalkey', - 'com.google.gwtexpui.safehtml', - 'com.google.gwtexpui.user', - ], - libs = DEPS + [ - ':gwtui-api-lib', - '//lib:gwtjsonrpc', - '//lib:gwtorm_client', - '//lib/gwt:dev', - '//gerrit-gwtui-common:client-lib', - '//gerrit-common:client', - '//gerrit-reviewdb:client', - ], + name = "gwtui-api-javadoc", + libs = DEPS + [ + ":gwtui-api-lib", + "//lib:gwtjsonrpc", + "//lib:gwtorm_client", + "//lib/gwt:dev", + "//gerrit-gwtui-common:client-lib", + "//gerrit-common:client", + "//gerrit-reviewdb:client", + ], + pkgs = [ + "com.google.gerrit.plugin", + "com.google.gwtexpui.clippy", + "com.google.gwtexpui.globalkey", + "com.google.gwtexpui.safehtml", + "com.google.gwtexpui.user", + ], + title = "Gerrit Review GWT Extension API Documentation", ) diff --git a/gerrit-prettify/BUILD b/gerrit-prettify/BUILD index c21a6f4375..18180b3680 100644 --- a/gerrit-prettify/BUILD +++ b/gerrit-prettify/BUILD @@ -1,40 +1,40 @@ -load('//tools/bzl:gwt.bzl', 'gwt_module') +load("//tools/bzl:gwt.bzl", "gwt_module") -SRC = 'src/main/java/com/google/gerrit/prettify/' +SRC = "src/main/java/com/google/gerrit/prettify/" gwt_module( - name = 'client', - srcs = glob([ - SRC + 'common/**/*.java', - ]), - gwt_xml = SRC + 'PrettyFormatter.gwt.xml', - deps = ['//lib/gwt:user-neverlink'], - exported_deps = [ - '//gerrit-extension-api:client', - '//gerrit-gwtexpui:SafeHtml', - '//gerrit-patch-jgit:client', - '//gerrit-patch-jgit:Edit', - '//gerrit-reviewdb:client', - '//lib:gwtjsonrpc', - '//lib:gwtjsonrpc_src', - ], - visibility = ['//visibility:public'], + name = "client", + srcs = glob([ + SRC + "common/**/*.java", + ]), + exported_deps = [ + "//gerrit-extension-api:client", + "//gerrit-gwtexpui:SafeHtml", + "//gerrit-patch-jgit:Edit", + "//gerrit-patch-jgit:client", + "//gerrit-reviewdb:client", + "//lib:gwtjsonrpc", + "//lib:gwtjsonrpc_src", + ], + gwt_xml = SRC + "PrettyFormatter.gwt.xml", + visibility = ["//visibility:public"], + deps = ["//lib/gwt:user-neverlink"], ) java_library( - name = 'server', - srcs = glob([SRC + 'common/**/*.java']), - deps = [ - '//gerrit-patch-jgit:server', - '//gerrit-reviewdb:server', - '//lib:guava', - '//lib:gwtjsonrpc', - '//lib/jgit/org.eclipse.jgit:jgit', - ], - visibility = ['//visibility:public'], + name = "server", + srcs = glob([SRC + "common/**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + "//gerrit-patch-jgit:server", + "//gerrit-reviewdb:server", + "//lib:guava", + "//lib:gwtjsonrpc", + "//lib/jgit/org.eclipse.jgit:jgit", + ], ) exports_files([ - 'src/main/resources/com/google/gerrit/prettify/client/prettify.css', - 'src/main/resources/com/google/gerrit/prettify/client/prettify.js', + "src/main/resources/com/google/gerrit/prettify/client/prettify.css", + "src/main/resources/com/google/gerrit/prettify/client/prettify.js", ]) diff --git a/gerrit-reviewdb/BUILD b/gerrit-reviewdb/BUILD index f9a7235022..98af668577 100644 --- a/gerrit-reviewdb/BUILD +++ b/gerrit-reviewdb/BUILD @@ -1,44 +1,45 @@ package( - default_visibility=["//visibility:public"] + default_visibility = ["//visibility:public"], ) -load('//tools/bzl:gwt.bzl', 'gwt_module') -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:gwt.bzl", "gwt_module") +load("//tools/bzl:junit.bzl", "junit_tests") -SRC = 'src/main/java/com/google/gerrit/reviewdb/' -TESTS = 'src/test/java/com/google/gerrit/reviewdb/' +SRC = "src/main/java/com/google/gerrit/reviewdb/" + +TESTS = "src/test/java/com/google/gerrit/reviewdb/" gwt_module( - name = 'client', - srcs = glob([SRC + 'client/**/*.java']), - gwt_xml = SRC + 'ReviewDB.gwt.xml', - deps = [ - '//gerrit-extension-api:client', - '//lib:gwtorm_client', - '//lib:gwtorm_client_src' - ], - visibility = ['//visibility:public'], + name = "client", + srcs = glob([SRC + "client/**/*.java"]), + gwt_xml = SRC + "ReviewDB.gwt.xml", + visibility = ["//visibility:public"], + deps = [ + "//gerrit-extension-api:client", + "//lib:gwtorm_client", + "//lib:gwtorm_client_src", + ], ) java_library( - name = 'server', - srcs = glob([SRC + '**/*.java']), - resources = glob(['src/main/resources/**/*']), - deps = [ - '//gerrit-extension-api:api', - '//lib:guava', - '//lib:gwtorm', - ], - visibility = ['//visibility:public'], + name = "server", + srcs = glob([SRC + "**/*.java"]), + resources = glob(["src/main/resources/**/*"]), + visibility = ["//visibility:public"], + deps = [ + "//gerrit-extension-api:api", + "//lib:guava", + "//lib:gwtorm", + ], ) junit_tests( - name = 'client_tests', - srcs = glob([TESTS + 'client/**/*.java']), - deps = [ - ':client', - '//gerrit-server:testutil', - '//lib:gwtorm', - '//lib:truth', - ], + name = "client_tests", + srcs = glob([TESTS + "client/**/*.java"]), + deps = [ + ":client", + "//gerrit-server:testutil", + "//lib:gwtorm", + "//lib:truth", + ], ) diff --git a/gerrit-server/BUILD b/gerrit-server/BUILD index d410865430..b390f3ecee 100644 --- a/gerrit-server/BUILD +++ b/gerrit-server/BUILD @@ -1,240 +1,242 @@ -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:junit.bzl", "junit_tests") CONSTANTS_SRC = [ - 'src/main/java/com/google/gerrit/server/documentation/Constants.java', + "src/main/java/com/google/gerrit/server/documentation/Constants.java", ] SRCS = glob( - ['src/main/java/**/*.java'], - exclude = CONSTANTS_SRC, + ["src/main/java/**/*.java"], + exclude = CONSTANTS_SRC, ) -RESOURCES = glob(['src/main/resources/**/*']) + +RESOURCES = glob(["src/main/resources/**/*"]) java_library( - name = 'constants', - srcs = CONSTANTS_SRC, - visibility = ['//visibility:public'], + name = "constants", + srcs = CONSTANTS_SRC, + visibility = ["//visibility:public"], ) java_library( - name = 'server', - srcs = SRCS, - resources = RESOURCES, - deps = [ - ':constants', - '//gerrit-antlr:query_exception', - '//gerrit-antlr:query_parser', - '//gerrit-common:annotations', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//gerrit-patch-commonsnet:commons-net', - '//gerrit-patch-jgit:server', - '//gerrit-prettify:server', - '//gerrit-reviewdb:server', - '//gerrit-util-cli:cli', - '//gerrit-util-ssl:ssl', - '//lib:args4j', - '//lib:automaton', - '//lib:blame-cache', - '//lib:grappa', - '//lib:gson', - '//lib:guava', - '//lib:guava-retrying', - '//lib:gwtjsonrpc', - '//lib:gwtorm', - '//lib:jsch', - '//lib:juniversalchardet', - '//lib:mime-util', - '//lib:pegdown', - '//lib:protobuf', - '//lib:servlet-api-3_1', - '//lib:soy', - '//lib:tukaani-xz', - '//lib:velocity', - '//lib/antlr:java_runtime', - '//lib/auto:auto-value', - '//lib/commons:codec', - '//lib/commons:compress', - '//lib/commons:dbcp', - '//lib/commons:lang', - '//lib/commons:net', - '//lib/commons:validator', - '//lib/dropwizard:dropwizard-core', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:guice-servlet', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/jgit/org.eclipse.jgit.archive:jgit-archive', - '//lib/joda:joda-time', - '//lib/log:api', - '//lib/log:jsonevent-layout', - '//lib/log:log4j', - '//lib/lucene:lucene-analyzers-common', - '//lib/lucene:lucene-core-and-backward-codecs', - '//lib/lucene:lucene-queryparser', - '//lib/mime4j:core', - '//lib/mime4j:dom', - '//lib/ow2:ow2-asm', - '//lib/ow2:ow2-asm-tree', - '//lib/ow2:ow2-asm-util', - '//lib/prolog:runtime', - ], - visibility = ['//visibility:public'], + name = "server", + srcs = SRCS, + resources = RESOURCES, + visibility = ["//visibility:public"], + deps = [ + ":constants", + "//gerrit-antlr:query_exception", + "//gerrit-antlr:query_parser", + "//gerrit-common:annotations", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-patch-commonsnet:commons-net", + "//gerrit-patch-jgit:server", + "//gerrit-prettify:server", + "//gerrit-reviewdb:server", + "//gerrit-util-cli:cli", + "//gerrit-util-ssl:ssl", + "//lib:args4j", + "//lib:automaton", + "//lib:blame-cache", + "//lib:grappa", + "//lib:gson", + "//lib:guava", + "//lib:guava-retrying", + "//lib:gwtjsonrpc", + "//lib:gwtorm", + "//lib:jsch", + "//lib:juniversalchardet", + "//lib:mime-util", + "//lib:pegdown", + "//lib:protobuf", + "//lib:servlet-api-3_1", + "//lib:soy", + "//lib:tukaani-xz", + "//lib:velocity", + "//lib/antlr:java_runtime", + "//lib/auto:auto-value", + "//lib/commons:codec", + "//lib/commons:compress", + "//lib/commons:dbcp", + "//lib/commons:lang", + "//lib/commons:net", + "//lib/commons:validator", + "//lib/dropwizard:dropwizard-core", + "//lib/guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:guice-servlet", + "//lib/jgit/org.eclipse.jgit.archive:jgit-archive", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/joda:joda-time", + "//lib/log:api", + "//lib/log:jsonevent-layout", + "//lib/log:log4j", + "//lib/lucene:lucene-analyzers-common", + "//lib/lucene:lucene-core-and-backward-codecs", + "//lib/lucene:lucene-queryparser", + "//lib/mime4j:core", + "//lib/mime4j:dom", + "//lib/ow2:ow2-asm", + "//lib/ow2:ow2-asm-tree", + "//lib/ow2:ow2-asm-util", + "//lib/prolog:runtime", + ], ) TESTUTIL_DEPS = [ - ':server', - '//gerrit-common:server', - '//gerrit-cache-h2:cache-h2', - '//gerrit-extension-api:api', - '//gerrit-gpg:gpg', - '//gerrit-lucene:lucene', - '//gerrit-reviewdb:server', - '//lib:gwtorm', - '//lib:h2', - '//lib:truth', - '//lib/guice:guice', - '//lib/guice:guice-servlet', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/jgit/org.eclipse.jgit.junit:junit', - '//lib/joda:joda-time', - '//lib/log:api', - '//lib/log:impl_log4j', - '//lib/log:log4j', + ":server", + "//gerrit-common:server", + "//gerrit-cache-h2:cache-h2", + "//gerrit-extension-api:api", + "//gerrit-gpg:gpg", + "//gerrit-lucene:lucene", + "//gerrit-reviewdb:server", + "//lib:gwtorm", + "//lib:h2", + "//lib:truth", + "//lib/guice:guice", + "//lib/guice:guice-servlet", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/jgit/org.eclipse.jgit.junit:junit", + "//lib/joda:joda-time", + "//lib/log:api", + "//lib/log:impl_log4j", + "//lib/log:log4j", ] TESTUTIL = glob([ - 'src/test/java/com/google/gerrit/testutil/**/*.java', - 'src/test/java/com/google/gerrit/server/project/Util.java', + "src/test/java/com/google/gerrit/testutil/**/*.java", + "src/test/java/com/google/gerrit/server/project/Util.java", ]) java_library( - name = 'testutil', - srcs = TESTUTIL, - deps = TESTUTIL_DEPS + [ - '//lib/auto:auto-value', - '//lib/easymock:easymock', - '//lib/powermock:powermock-api-easymock', - '//lib/powermock:powermock-api-support', - '//lib/powermock:powermock-core', - '//lib/powermock:powermock-module-junit4', - '//lib/powermock:powermock-module-junit4-common', - ], - exports = [ - '//lib/easymock:easymock', - '//lib/powermock:powermock-api-easymock', - '//lib/powermock:powermock-api-support', - '//lib/powermock:powermock-core', - '//lib/powermock:powermock-module-junit4', - '//lib/powermock:powermock-module-junit4-common', - ], - visibility = ['//visibility:public'], - testonly = 1, + name = "testutil", + testonly = 1, + srcs = TESTUTIL, + visibility = ["//visibility:public"], + exports = [ + "//lib/easymock", + "//lib/powermock:powermock-api-easymock", + "//lib/powermock:powermock-api-support", + "//lib/powermock:powermock-core", + "//lib/powermock:powermock-module-junit4", + "//lib/powermock:powermock-module-junit4-common", + ], + deps = TESTUTIL_DEPS + [ + "//lib/auto:auto-value", + "//lib/easymock:easymock", + "//lib/powermock:powermock-api-easymock", + "//lib/powermock:powermock-api-support", + "//lib/powermock:powermock-core", + "//lib/powermock:powermock-module-junit4", + "//lib/powermock:powermock-module-junit4-common", + ], ) PROLOG_TEST_CASE = [ - 'src/test/java/com/google/gerrit/rules/PrologTestCase.java', + "src/test/java/com/google/gerrit/rules/PrologTestCase.java", ] + PROLOG_TESTS = glob( - ['src/test/java/com/google/gerrit/rules/**/*.java'], - exclude = PROLOG_TEST_CASE, + ["src/test/java/com/google/gerrit/rules/**/*.java"], + exclude = PROLOG_TEST_CASE, ) java_library( - name = 'prolog_test_case', - srcs = PROLOG_TEST_CASE, - deps = [ - ':server', - ':testutil', - '//gerrit-common:server', - '//gerrit-extension-api:api', - '//lib:guava', - '//lib:junit', - '//lib:truth', - '//lib/guice:guice', - '//lib/prolog:runtime', - ], - testonly = 1, + name = "prolog_test_case", + testonly = 1, + srcs = PROLOG_TEST_CASE, + deps = [ + ":server", + ":testutil", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//lib:guava", + "//lib:junit", + "//lib:truth", + "//lib/guice", + "//lib/prolog:runtime", + ], ) junit_tests( - name = 'prolog_tests', - srcs = PROLOG_TESTS, - resources = glob(['src/test/resources/com/google/gerrit/rules/**/*']), - deps = TESTUTIL_DEPS + [ - ':prolog_test_case', - ':testutil', - '//gerrit-server/src/main/prolog:common', - '//lib/prolog:runtime', - ], + name = "prolog_tests", + srcs = PROLOG_TESTS, + resources = glob(["src/test/resources/com/google/gerrit/rules/**/*"]), + deps = TESTUTIL_DEPS + [ + ":prolog_test_case", + ":testutil", + "//gerrit-server/src/main/prolog:common", + "//lib/prolog:runtime", + ], ) QUERY_TESTS = glob( - ['src/test/java/com/google/gerrit/server/query/**/*.java'], + ["src/test/java/com/google/gerrit/server/query/**/*.java"], ) java_library( - name = 'query_tests_code', - srcs = QUERY_TESTS, - deps = TESTUTIL_DEPS + [ - ':testutil', - '//gerrit-antlr:query_exception', - '//gerrit-antlr:query_parser', - '//gerrit-common:annotations', - '//gerrit-server/src/main/prolog:common', - '//lib/antlr:java_runtime', - ], - visibility = ['//visibility:public'], - testonly = 1, + name = "query_tests_code", + testonly = 1, + srcs = QUERY_TESTS, + visibility = ["//visibility:public"], + deps = TESTUTIL_DEPS + [ + ":testutil", + "//gerrit-antlr:query_exception", + "//gerrit-antlr:query_parser", + "//gerrit-common:annotations", + "//gerrit-server/src/main/prolog:common", + "//lib/antlr:java_runtime", + ], ) junit_tests( - name = 'query_tests', - srcs = QUERY_TESTS, - size = "medium", - deps = TESTUTIL_DEPS + [ - ':testutil', - '//gerrit-antlr:query_exception', - '//gerrit-antlr:query_parser', - '//gerrit-common:annotations', - '//gerrit-server/src/main/prolog:common', - '//lib/antlr:java_runtime', - ], - visibility = ['//visibility:public'], + name = "query_tests", + size = "medium", + srcs = QUERY_TESTS, + visibility = ["//visibility:public"], + deps = TESTUTIL_DEPS + [ + ":testutil", + "//gerrit-antlr:query_exception", + "//gerrit-antlr:query_parser", + "//gerrit-common:annotations", + "//gerrit-server/src/main/prolog:common", + "//lib/antlr:java_runtime", + ], ) junit_tests( - name = 'server_tests', - srcs = glob( - ['src/test/java/**/*.java'], - exclude = TESTUTIL + PROLOG_TESTS + PROLOG_TEST_CASE + QUERY_TESTS - ), - resources = glob(['src/test/resources/com/google/gerrit/server/mail/*']), - size = "medium", - deps = TESTUTIL_DEPS + [ - ':testutil', - '//gerrit-antlr:query_exception', - '//gerrit-common:annotations', - '//gerrit-patch-jgit:server', - '//gerrit-server/src/main/prolog:common', - '//lib:args4j', - '//lib:grappa', - '//lib:gson', - '//lib:guava', - '//lib:guava-retrying', - '//lib:protobuf', - '//lib/dropwizard:dropwizard-core', - '//lib/guice:guice-assistedinject', - '//lib/prolog:runtime', - ], - visibility = ['//visibility:public'], + name = "server_tests", + size = "medium", + srcs = glob( + ["src/test/java/**/*.java"], + exclude = TESTUTIL + PROLOG_TESTS + PROLOG_TEST_CASE + QUERY_TESTS, + ), + resources = glob(["src/test/resources/com/google/gerrit/server/mail/*"]), + visibility = ["//visibility:public"], + deps = TESTUTIL_DEPS + [ + ":testutil", + "//gerrit-antlr:query_exception", + "//gerrit-common:annotations", + "//gerrit-patch-jgit:server", + "//gerrit-server/src/main/prolog:common", + "//lib:args4j", + "//lib:grappa", + "//lib:gson", + "//lib:guava", + "//lib:guava-retrying", + "//lib:protobuf", + "//lib/dropwizard:dropwizard-core", + "//lib/guice:guice-assistedinject", + "//lib/prolog:runtime", + ], ) -load('//tools/bzl:javadoc.bzl', 'java_doc') +load("//tools/bzl:javadoc.bzl", "java_doc") java_doc( - name = 'doc', - title = 'Gerrit Review Server Documentation', - libs = [':server'], - pkgs = ['com.google.gerrit'], + name = "doc", + libs = [":server"], + pkgs = ["com.google.gerrit"], + title = "Gerrit Review Server Documentation", ) diff --git a/gerrit-server/src/main/prolog/BUILD b/gerrit-server/src/main/prolog/BUILD index 555cd90e82..603a0bf893 100644 --- a/gerrit-server/src/main/prolog/BUILD +++ b/gerrit-server/src/main/prolog/BUILD @@ -1,8 +1,8 @@ -load('//lib/prolog:prolog.bzl', 'prolog_cafe_library') +load("//lib/prolog:prolog.bzl", "prolog_cafe_library") prolog_cafe_library( - name = 'common', - srcs = ['gerrit_common.pl'], - deps = ['//gerrit-server:server'], - visibility = ['//visibility:public'], + name = "common", + srcs = ["gerrit_common.pl"], + visibility = ["//visibility:public"], + deps = ["//gerrit-server:server"], ) diff --git a/gerrit-sshd/BUILD b/gerrit-sshd/BUILD index be49c73cc0..2288e5d3bf 100644 --- a/gerrit-sshd/BUILD +++ b/gerrit-sshd/BUILD @@ -1,53 +1,53 @@ -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:junit.bzl", "junit_tests") -SRCS = glob(['src/main/java/**/*.java']) +SRCS = glob(["src/main/java/**/*.java"]) java_library( - name = 'sshd', - srcs = SRCS, - deps = [ - '//gerrit-extension-api:api', - '//gerrit-cache-h2:cache-h2', - '//gerrit-common:annotations', - '//gerrit-common:server', - '//gerrit-lucene:lucene', - '//gerrit-patch-jgit:server', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//gerrit-util-cli:cli', - '//lib:args4j', - '//lib:gson', - '//lib:guava', - '//lib:gwtorm', - '//lib:jsch', - '//lib:servlet-api-3_1', - '//lib/auto:auto-value', - '//lib/bouncycastle:bcprov', - '//lib/commons:codec', - '//lib/dropwizard:dropwizard-core', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:guice-servlet', # SSH should not depend on servlet - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/jgit/org.eclipse.jgit.archive:jgit-archive', - '//lib/log:api', - '//lib/log:log4j', - '//lib/mina:core', - '//lib/mina:sshd', - ], - visibility = ['//visibility:public'], + name = "sshd", + srcs = SRCS, + visibility = ["//visibility:public"], + deps = [ + "//gerrit-cache-h2:cache-h2", + "//gerrit-common:annotations", + "//gerrit-common:server", + "//gerrit-extension-api:api", + "//gerrit-lucene:lucene", + "//gerrit-patch-jgit:server", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//gerrit-util-cli:cli", + "//lib:args4j", + "//lib:gson", + "//lib:guava", + "//lib:gwtorm", + "//lib:jsch", + "//lib:servlet-api-3_1", + "//lib/auto:auto-value", + "//lib/bouncycastle:bcprov", + "//lib/commons:codec", + "//lib/dropwizard:dropwizard-core", + "//lib/guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:guice-servlet", # SSH should not depend on servlet + "//lib/jgit/org.eclipse.jgit.archive:jgit-archive", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/log:api", + "//lib/log:log4j", + "//lib/mina:core", + "//lib/mina:sshd", + ], ) junit_tests( - name = 'sshd_tests', - srcs = glob( - ['src/test/java/**/*.java'], - ), - deps = [ - ':sshd', - '//gerrit-extension-api:api', - '//gerrit-server:server', - '//lib:truth', - '//lib/mina:sshd', - ], + name = "sshd_tests", + srcs = glob( + ["src/test/java/**/*.java"], + ), + deps = [ + ":sshd", + "//gerrit-extension-api:api", + "//gerrit-server:server", + "//lib:truth", + "//lib/mina:sshd", + ], ) diff --git a/gerrit-util-cli/BUILD b/gerrit-util-cli/BUILD index f3be5f3087..bb282f467f 100644 --- a/gerrit-util-cli/BUILD +++ b/gerrit-util-cli/BUILD @@ -1,13 +1,13 @@ java_library( - name = 'cli', - srcs = glob(['src/main/java/**/*.java']), - deps = [ - '//gerrit-common:annotations', - '//gerrit-common:server', - '//lib:args4j', - '//lib:guava', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - ], - visibility = ['//visibility:public'], + name = "cli", + srcs = glob(["src/main/java/**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + "//gerrit-common:annotations", + "//gerrit-common:server", + "//lib:args4j", + "//lib:guava", + "//lib/guice", + "//lib/guice:guice-assistedinject", + ], ) diff --git a/gerrit-util-http/BUILD b/gerrit-util-http/BUILD index c5d72ba58f..47cc62e563 100644 --- a/gerrit-util-http/BUILD +++ b/gerrit-util-http/BUILD @@ -1,40 +1,40 @@ -load('//tools/bzl:junit.bzl', 'junit_tests') +load("//tools/bzl:junit.bzl", "junit_tests") java_library( - name = 'http', - srcs = glob(['src/main/java/**/*.java']), - deps = ['//lib:servlet-api-3_1'], - visibility = ['//visibility:public'], + name = "http", + srcs = glob(["src/main/java/**/*.java"]), + visibility = ["//visibility:public"], + deps = ["//lib:servlet-api-3_1"], ) -TESTUTIL_SRCS = glob(['src/test/**/testutil/**/*.java']) +TESTUTIL_SRCS = glob(["src/test/**/testutil/**/*.java"]) java_library( - name = 'testutil', - srcs = TESTUTIL_SRCS, - deps = [ - '//gerrit-extension-api:api', - '//lib:guava', - '//lib:servlet-api-3_1', - '//lib/httpcomponents:httpclient', - '//lib/jgit/org.eclipse.jgit:jgit', - ], - visibility = ['//visibility:public'], - testonly = 1, + name = "testutil", + testonly = 1, + srcs = TESTUTIL_SRCS, + visibility = ["//visibility:public"], + deps = [ + "//gerrit-extension-api:api", + "//lib:guava", + "//lib:servlet-api-3_1", + "//lib/httpcomponents:httpclient", + "//lib/jgit/org.eclipse.jgit:jgit", + ], ) junit_tests( - name = 'http_tests', - srcs = glob( - ['src/test/java/**/*.java'], - exclude = TESTUTIL_SRCS, - ), - deps = [ - ':http', - ':testutil', - '//lib:junit', - '//lib:servlet-api-3_1-without-neverlink', - '//lib:truth', - '//lib/easymock:easymock', - ], + name = "http_tests", + srcs = glob( + ["src/test/java/**/*.java"], + exclude = TESTUTIL_SRCS, + ), + deps = [ + ":http", + ":testutil", + "//lib:junit", + "//lib:servlet-api-3_1-without-neverlink", + "//lib:truth", + "//lib/easymock", + ], ) diff --git a/gerrit-util-ssl/BUILD b/gerrit-util-ssl/BUILD index 6333d453f0..ce53a26c70 100644 --- a/gerrit-util-ssl/BUILD +++ b/gerrit-util-ssl/BUILD @@ -1,5 +1,5 @@ java_library( - name = 'ssl', - srcs = glob(['src/main/java/**/*.java']), - visibility = ['//visibility:public'], + name = "ssl", + srcs = glob(["src/main/java/**/*.java"]), + visibility = ["//visibility:public"], ) diff --git a/gerrit-war/BUILD b/gerrit-war/BUILD index 8f4946ab78..66a0a47a27 100644 --- a/gerrit-war/BUILD +++ b/gerrit-war/BUILD @@ -1,71 +1,71 @@ -load('//tools/bzl:genrule2.bzl', 'genrule2') +load("//tools/bzl:genrule2.bzl", "genrule2") java_library( - name = 'init', - srcs = glob(['src/main/java/**/*.java']), - deps = [ - '//gerrit-cache-h2:cache-h2', - '//gerrit-elasticsearch:elasticsearch', - '//gerrit-extension-api:api', - '//gerrit-gpg:gpg', - '//gerrit-httpd:httpd', - '//gerrit-lucene:lucene', - '//gerrit-oauth:oauth', - '//gerrit-openid:openid', - '//gerrit-pgm:http', - '//gerrit-pgm:init', - '//gerrit-pgm:init-api', - '//gerrit-pgm:util', - '//gerrit-reviewdb:server', - '//gerrit-server:server', - '//gerrit-server/src/main/prolog:common', - '//gerrit-sshd:sshd', - '//lib:guava', - '//lib:gwtorm', - '//lib:servlet-api-3_1', - '//lib/guice:guice', - '//lib/guice:guice-servlet', - '//lib/jgit/org.eclipse.jgit:jgit', - '//lib/log:api', - ], - visibility = ['//visibility:public'], + name = "init", + srcs = glob(["src/main/java/**/*.java"]), + visibility = ["//visibility:public"], + deps = [ + "//gerrit-cache-h2:cache-h2", + "//gerrit-elasticsearch:elasticsearch", + "//gerrit-extension-api:api", + "//gerrit-gpg:gpg", + "//gerrit-httpd:httpd", + "//gerrit-lucene:lucene", + "//gerrit-oauth:oauth", + "//gerrit-openid:openid", + "//gerrit-pgm:http", + "//gerrit-pgm:init", + "//gerrit-pgm:init-api", + "//gerrit-pgm:util", + "//gerrit-reviewdb:server", + "//gerrit-server:server", + "//gerrit-server/src/main/prolog:common", + "//gerrit-sshd:sshd", + "//lib:guava", + "//lib:gwtorm", + "//lib:servlet-api-3_1", + "//lib/guice", + "//lib/guice:guice-servlet", + "//lib/jgit/org.eclipse.jgit:jgit", + "//lib/log:api", + ], ) genrule2( - name = 'webapp_assets', - cmd = 'cd gerrit-war/src/main/webapp; zip -qr $$ROOT/$@ .', - srcs = glob(['src/main/webapp/**/*']), - outs = [ 'webapp_assets.zip' ], - visibility = ['//visibility:public'], + name = "webapp_assets", + srcs = glob(["src/main/webapp/**/*"]), + outs = ["webapp_assets.zip"], + cmd = "cd gerrit-war/src/main/webapp; zip -qr $$ROOT/$@ .", + visibility = ["//visibility:public"], ) java_import( - name = 'log4j-config', - jars = [':log4j-config__jar'], - visibility = ['//visibility:public'], + name = "log4j-config", + jars = [":log4j-config__jar"], + visibility = ["//visibility:public"], ) genrule2( - name = 'log4j-config__jar', - cmd = 'cd gerrit-war/src/main/resources && zip -9Dqr $$ROOT/$@ .', - srcs = ['src/main/resources/log4j.properties'], - outs = [ 'log4j-config.jar' ], + name = "log4j-config__jar", + srcs = ["src/main/resources/log4j.properties"], + outs = ["log4j-config.jar"], + cmd = "cd gerrit-war/src/main/resources && zip -9Dqr $$ROOT/$@ .", ) java_import( - name = 'version', - jars = [':gen_version'], - visibility = ['//visibility:public'], + name = "version", + jars = [":gen_version"], + visibility = ["//visibility:public"], ) genrule2( - name = 'gen_version', - cmd = ' && '.join([ - 'cd $$TMP', - 'mkdir -p com/google/gerrit/common', - 'cat $$ROOT/$(location //:version.txt) >com/google/gerrit/common/Version', - 'zip -9Dqr $$ROOT/$@ .', - ]), - tools = ['//:version.txt'], - outs = [ 'gen_version.jar' ], + name = "gen_version", + outs = ["gen_version.jar"], + cmd = " && ".join([ + "cd $$TMP", + "mkdir -p com/google/gerrit/common", + "cat $$ROOT/$(location //:version.txt) >com/google/gerrit/common/Version", + "zip -9Dqr $$ROOT/$@ .", + ]), + tools = ["//:version.txt"], ) diff --git a/lib/BUILD b/lib/BUILD index a4f1d5108d..ca0fec3443 100644 --- a/lib/BUILD +++ b/lib/BUILD @@ -1,288 +1,289 @@ exports_files(glob([ - "LICENSE-*" + "LICENSE-*", ])) filegroup( - name = 'all-licenses', - srcs = glob(['LICENSE-*'], exclude = ['LICENSE-DO_NOT_DISTRIBUTE']), - visibility = ['//visibility:public'], + name = "all-licenses", + srcs = glob( + ["LICENSE-*"], + exclude = ["LICENSE-DO_NOT_DISTRIBUTE"], + ), + visibility = ["//visibility:public"], ) java_library( - name = 'servlet-api-3_1', - neverlink = 1, - exports = ['@servlet_api_3_1//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "servlet-api-3_1", + data = ["//lib:LICENSE-Apache2.0"], + neverlink = 1, + visibility = ["//visibility:public"], + exports = ["@servlet_api_3_1//jar"], ) java_library( - name = 'servlet-api-3_1-without-neverlink', - exports = ['@servlet_api_3_1//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "servlet-api-3_1-without-neverlink", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@servlet_api_3_1//jar"], ) java_library( - name = 'gwtjsonrpc', - exports = ['@gwtjsonrpc//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "gwtjsonrpc", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@gwtjsonrpc//jar"], ) java_library( - name = 'gwtjsonrpc_src', - exports = ['@gwtjsonrpc//jar:src'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "gwtjsonrpc_src", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@gwtjsonrpc//jar:src"], ) java_library( - name = 'gson', - exports = ['@gson//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "gson", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@gson//jar"], ) java_library( - name = 'gwtorm_client', - exports = ['@gwtorm_client//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "gwtorm_client", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@gwtorm_client//jar"], ) java_library( - name = 'gwtorm_client_src', - exports = ['@gwtorm_client//jar:src'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "gwtorm_client_src", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@gwtorm_client//jar:src"], ) java_library( - name = 'protobuf', - exports = ['@protobuf//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-protobuf'], + name = "protobuf", + data = ["//lib:LICENSE-protobuf"], + visibility = ["//visibility:public"], + exports = ["@protobuf//jar"], ) java_library( - name = 'gwtorm', - exports = [':gwtorm_client'], - runtime_deps = [':protobuf'], - visibility = ['//visibility:public'], + name = "gwtorm", + visibility = ["//visibility:public"], + exports = [":gwtorm_client"], + runtime_deps = [":protobuf"], ) java_library( - name = 'guava', - exports = ['@guava//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "guava", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@guava//jar"], ) java_library( - name = 'velocity', - exports = ['@velocity//jar'], - runtime_deps = [ - '//lib/commons:collections', - '//lib/commons:lang', - '//lib/commons:oro', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "velocity", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@velocity//jar"], + runtime_deps = [ + "//lib/commons:collections", + "//lib/commons:lang", + "//lib/commons:oro", + ], ) java_library( - name = 'jsch', - exports = ['@jsch//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-jsch'], + name = "jsch", + data = ["//lib:LICENSE-jsch"], + visibility = ["//visibility:public"], + exports = ["@jsch//jar"], ) java_library( - name = 'juniversalchardet', - exports = ['@juniversalchardet//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-MPL1.1'], + name = "juniversalchardet", + data = ["//lib:LICENSE-MPL1.1"], + visibility = ["//visibility:public"], + exports = ["@juniversalchardet//jar"], ) java_library( - name = 'args4j', - exports = ['@args4j//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-args4j'], + name = "args4j", + data = ["//lib:LICENSE-args4j"], + visibility = ["//visibility:public"], + exports = ["@args4j//jar"], ) java_library( - name = 'automaton', - exports = ['@automaton//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-automaton'], + name = "automaton", + data = ["//lib:LICENSE-automaton"], + visibility = ["//visibility:public"], + exports = ["@automaton//jar"], ) java_library( - name = 'pegdown', - exports = ['@pegdown//jar'], - runtime_deps = [':grappa'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "pegdown", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@pegdown//jar"], + runtime_deps = [":grappa"], ) java_library( - name = 'grappa', - exports = ['@grappa//jar'], - runtime_deps = [ - ':jitescript', - '//lib/ow2:ow2-asm', - '//lib/ow2:ow2-asm-analysis', - '//lib/ow2:ow2-asm-tree', - '//lib/ow2:ow2-asm-util', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "grappa", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@grappa//jar"], + runtime_deps = [ + ":jitescript", + "//lib/ow2:ow2-asm", + "//lib/ow2:ow2-asm-analysis", + "//lib/ow2:ow2-asm-tree", + "//lib/ow2:ow2-asm-util", + ], ) java_library( - name = 'jitescript', - exports = ['@jitescript//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "jitescript", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@jitescript//jar"], ) java_library( - name = 'tukaani-xz', - exports = ['@tukaani_xz//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-xz'], + name = "tukaani-xz", + data = ["//lib:LICENSE-xz"], + visibility = ["//visibility:public"], + exports = ["@tukaani_xz//jar"], ) java_library( - name = 'mime-util', - exports = ['@mime_util//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "mime-util", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@mime_util//jar"], ) java_library( - name = 'guava-retrying', - exports = ['@guava_retrying//jar'], - runtime_deps = [':jsr305'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "guava-retrying", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@guava_retrying//jar"], + runtime_deps = [":jsr305"], ) java_library( - name = 'jsr305', - exports = ['@jsr305//jar'], - data = ['//lib:LICENSE-Apache2.0'], + name = "jsr305", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@jsr305//jar"], ) java_library( - name = 'blame-cache', - exports = ['@blame_cache//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], -) - - -java_library( - name = 'h2', - exports = ['@h2//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-h2'], -) - - -java_library( - name = 'jimfs', - exports = ['@jimfs//jar'], - runtime_deps = [':guava'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "blame-cache", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@blame_cache//jar"], ) java_library( - name = 'junit', - exports = [ - '@junit//jar', - ':hamcrest-core', - ], - runtime_deps = [':hamcrest-core'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "h2", + data = ["//lib:LICENSE-h2"], + visibility = ["//visibility:public"], + exports = ["@h2//jar"], ) java_library( - name = 'hamcrest-core', - exports = ['@hamcrest_core//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "jimfs", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@jimfs//jar"], + runtime_deps = [":guava"], ) java_library( - name = 'truth', - exports = [ - '@truth//jar', - ':guava', - ':junit', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "junit", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = [ + ":hamcrest-core", + "@junit//jar", + ], + runtime_deps = [":hamcrest-core"], ) java_library( - name = 'javassist', - exports = ['@javassist//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "hamcrest-core", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@hamcrest_core//jar"], ) java_library( - name = 'derby', - exports = ['@derby//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "truth", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = [ + ":guava", + ":junit", + "@truth//jar", + ], ) java_library( - name = 'soy', - exports = ['@soy//jar'], - runtime_deps = [ - ':args4j', - ':guava', - ':gson', - ':icu4j', - ':jsr305', - ':protobuf', - '//lib/guice:guice', - '//lib/guice:guice-assistedinject', - '//lib/guice:multibindings', - '//lib/guice:javax-inject', - '//lib/ow2:ow2-asm', - '//lib/ow2:ow2-asm-analysis', - '//lib/ow2:ow2-asm-commons', - '//lib/ow2:ow2-asm-util', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "javassist", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@javassist//jar"], ) java_library( - name = 'icu4j', - exports = [ '@icu4j//jar' ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-icu4j'], + name = "derby", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@derby//jar"], ) java_library( - name = 'postgresql', - exports = ['@postgresql//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-postgresql'], + name = "soy", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@soy//jar"], + runtime_deps = [ + ":args4j", + ":gson", + ":guava", + ":icu4j", + ":jsr305", + ":protobuf", + "//lib/guice", + "//lib/guice:guice-assistedinject", + "//lib/guice:javax-inject", + "//lib/guice:multibindings", + "//lib/ow2:ow2-asm", + "//lib/ow2:ow2-asm-analysis", + "//lib/ow2:ow2-asm-commons", + "//lib/ow2:ow2-asm-util", + ], ) java_library( - name = 'commons-io', - exports = ['@commons_io//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "icu4j", + data = ["//lib:LICENSE-icu4j"], + visibility = ["//visibility:public"], + exports = ["@icu4j//jar"], +) + +java_library( + name = "postgresql", + data = ["//lib:LICENSE-postgresql"], + visibility = ["//visibility:public"], + exports = ["@postgresql//jar"], +) + +java_library( + name = "commons-io", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@commons_io//jar"], ) diff --git a/lib/antlr/BUILD b/lib/antlr/BUILD index 92f3d0f68c..6afe7b85f9 100644 --- a/lib/antlr/BUILD +++ b/lib/antlr/BUILD @@ -1,34 +1,33 @@ - [java_library( - name = n, - exports = ['@%s//jar' % n], - data = ['//lib:LICENSE-antlr'], + name = n, + data = ["//lib:LICENSE-antlr"], + exports = ["@%s//jar" % n], ) for n in [ - 'antlr27', - 'stringtemplate', + "antlr27", + "stringtemplate", ]] java_library( - name = 'java_runtime', - exports = ['@java_runtime//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-antlr'], + name = "java_runtime", + data = ["//lib:LICENSE-antlr"], + visibility = ["//visibility:public"], + exports = ["@java_runtime//jar"], ) java_binary( - name = 'antlr-tool', - main_class = 'org.antlr.Tool', - runtime_deps = [':tool'], - visibility = ['//gerrit-antlr:__pkg__'], + name = "antlr-tool", + main_class = "org.antlr.Tool", + visibility = ["//gerrit-antlr:__pkg__"], + runtime_deps = [":tool"], ) java_library( - name = 'tool', - exports = ['@org_antlr//jar'], - runtime_deps = [ - ':antlr27', - ':java_runtime', - ':stringtemplate', - ], - data = ['//lib:LICENSE-antlr'], + name = "tool", + data = ["//lib:LICENSE-antlr"], + exports = ["@org_antlr//jar"], + runtime_deps = [ + ":antlr27", + ":java_runtime", + ":stringtemplate", + ], ) diff --git a/lib/asciidoctor/BUILD b/lib/asciidoctor/BUILD index d1b98f82f2..c7567d9c8d 100644 --- a/lib/asciidoctor/BUILD +++ b/lib/asciidoctor/BUILD @@ -1,54 +1,54 @@ java_binary( - name = "asciidoc", - main_class = "AsciiDoctor", - runtime_deps = [":asciidoc_lib"], - visibility = ["//visibility:public"], + name = "asciidoc", + main_class = "AsciiDoctor", + visibility = ["//visibility:public"], + runtime_deps = [":asciidoc_lib"], ) java_library( - name = "asciidoc_lib", - srcs = ["java/AsciiDoctor.java"], - deps = [ - ":asciidoctor", - "//lib:args4j", - "//lib:guava", - "//lib/log:api", - "//lib/log:nop", - ], - visibility = ["//visibility:public"], + name = "asciidoc_lib", + srcs = ["java/AsciiDoctor.java"], + visibility = ["//visibility:public"], + deps = [ + ":asciidoctor", + "//lib:args4j", + "//lib:guava", + "//lib/log:api", + "//lib/log:nop", + ], ) java_binary( - name = "doc_indexer", - main_class = "DocIndexer", - runtime_deps = [":doc_indexer_lib"], - visibility = ["//visibility:public"], + name = "doc_indexer", + main_class = "DocIndexer", + visibility = ["//visibility:public"], + runtime_deps = [":doc_indexer_lib"], ) java_library( - name = "doc_indexer_lib", - srcs = ["java/DocIndexer.java"], - deps = [ - ":asciidoc_lib", - "//gerrit-server:constants", - "//lib:args4j", - "//lib:guava", - "//lib/lucene:lucene-analyzers-common", - "//lib/lucene:lucene-core-and-backward-codecs", - ], - visibility = ["//visibility:public"], + name = "doc_indexer_lib", + srcs = ["java/DocIndexer.java"], + visibility = ["//visibility:public"], + deps = [ + ":asciidoc_lib", + "//gerrit-server:constants", + "//lib:args4j", + "//lib:guava", + "//lib/lucene:lucene-analyzers-common", + "//lib/lucene:lucene-core-and-backward-codecs", + ], ) java_library( - name = "asciidoctor", - exports = ["@asciidoctor//jar"], - runtime_deps = [":jruby"], - visibility = ["//visibility:public"], - data = ["//lib:LICENSE-asciidoctor"], + name = "asciidoctor", + data = ["//lib:LICENSE-asciidoctor"], + visibility = ["//visibility:public"], + exports = ["@asciidoctor//jar"], + runtime_deps = [":jruby"], ) java_library( - name = "jruby", - exports = ["@jruby//jar"], - data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + name = "jruby", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + exports = ["@jruby//jar"], ) diff --git a/lib/auto/BUILD b/lib/auto/BUILD index c50c105617..569398ea13 100644 --- a/lib/auto/BUILD +++ b/lib/auto/BUILD @@ -1,22 +1,22 @@ java_plugin( - name = 'auto-annotation-plugin', - processor_class = 'com.google.auto.value.processor.AutoAnnotationProcessor', - deps = ['@auto_value//jar'], + name = "auto-annotation-plugin", + processor_class = "com.google.auto.value.processor.AutoAnnotationProcessor", + deps = ["@auto_value//jar"], ) java_plugin( - name = 'auto-value-plugin', - processor_class = 'com.google.auto.value.processor.AutoValueProcessor', - deps = ['@auto_value//jar'], + name = "auto-value-plugin", + processor_class = "com.google.auto.value.processor.AutoValueProcessor", + deps = ["@auto_value//jar"], ) java_library( - name = 'auto-value', - exported_plugins = [ - ':auto-annotation-plugin', - ':auto-value-plugin', - ], - exports = ['@auto_value//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "auto-value", + data = ["//lib:LICENSE-Apache2.0"], + exported_plugins = [ + ":auto-annotation-plugin", + ":auto-value-plugin", + ], + visibility = ["//visibility:public"], + exports = ["@auto_value//jar"], ) diff --git a/lib/bouncycastle/BUILD b/lib/bouncycastle/BUILD index 333c355408..4ec7fa0ebb 100644 --- a/lib/bouncycastle/BUILD +++ b/lib/bouncycastle/BUILD @@ -1,44 +1,44 @@ java_library( - name = 'bcprov', - neverlink = 1, - exports = ['@bcprov//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "bcprov", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + neverlink = 1, + visibility = ["//visibility:public"], + exports = ["@bcprov//jar"], ) java_library( - name = 'bcprov-without-neverlink', - exports = ['@bcprov//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "bcprov-without-neverlink", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@bcprov//jar"], ) java_library( - name = 'bcpg', - neverlink = 1, - exports = ['@bcpg//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "bcpg", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + neverlink = 1, + visibility = ["//visibility:public"], + exports = ["@bcpg//jar"], ) java_library( - name = 'bcpg-without-neverlink', - exports = ['@bcpg//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "bcpg-without-neverlink", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@bcpg//jar"], ) java_library( - name = 'bcpkix', - neverlink = 1, - exports = ['@bcpkix//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "bcpkix", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + neverlink = 1, + visibility = ["//visibility:public"], + exports = ["@bcpkix//jar"], ) java_library( - name = 'bcpkix-without-neverlink', - exports = ['@bcpkix//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "bcpkix-without-neverlink", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@bcpkix//jar"], ) diff --git a/lib/codemirror/BUILD b/lib/codemirror/BUILD index 0a62d413d9..56ed174eaf 100644 --- a/lib/codemirror/BUILD +++ b/lib/codemirror/BUILD @@ -1,2 +1,3 @@ -load('//lib/codemirror:cm.bzl', 'pkg_cm') +load("//lib/codemirror:cm.bzl", "pkg_cm") + pkg_cm() diff --git a/lib/commons/BUILD b/lib/commons/BUILD index d4d6145f35..cc4de55bb3 100644 --- a/lib/commons/BUILD +++ b/lib/commons/BUILD @@ -1,71 +1,71 @@ -package(default_visibility = ['//visibility:public']) +package(default_visibility = ["//visibility:public"]) java_library( - name = 'codec', - exports = ['@commons_codec//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "codec", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@commons_codec//jar"], ) java_library( - name = 'collections', - exports = ['@commons_collections//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "collections", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@commons_collections//jar"], ) java_library( - name = 'compress', - exports = ['@commons_compress//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "compress", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@commons_compress//jar"], ) java_library( - name = 'lang', - exports = ['@commons_lang//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "lang", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@commons_lang//jar"], ) java_library( - name = 'lang3', - exports = [ '@commons_lang3//jar'], - data = ['//lib:LICENSE-Apache2.0'], + name = "lang3", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@commons_lang3//jar"], ) java_library( - name = 'net', - exports = ['@commons_net//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "net", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@commons_net//jar"], ) java_library( - name = 'dbcp', - exports = ['@commons_dbcp//jar'], - runtime_deps = [':pool'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "dbcp", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@commons_dbcp//jar"], + runtime_deps = [":pool"], ) java_library( - name = 'pool', - exports = ['@commons_pool//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "pool", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@commons_pool//jar"], ) java_library( - name = 'oro', - exports = ['@commons_oro//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache1.1'], + name = "oro", + data = ["//lib:LICENSE-Apache1.1"], + visibility = ["//visibility:public"], + exports = ["@commons_oro//jar"], ) java_library( - name = 'validator', - exports = ['@commons_validator//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "validator", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@commons_validator//jar"], ) diff --git a/lib/dropwizard/BUILD b/lib/dropwizard/BUILD index b456d5e8b7..dd1469983f 100644 --- a/lib/dropwizard/BUILD +++ b/lib/dropwizard/BUILD @@ -1,6 +1,6 @@ java_library( - name = 'dropwizard-core', - exports = ['@dropwizard_core//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "dropwizard-core", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@dropwizard_core//jar"], ) diff --git a/lib/easymock/BUILD b/lib/easymock/BUILD index fce3ff7364..b579ec567f 100644 --- a/lib/easymock/BUILD +++ b/lib/easymock/BUILD @@ -1,25 +1,24 @@ java_library( - name = 'easymock', - exports = ['@easymock//jar'], - runtime_deps = [ - ':cglib-3_2', - ':objenesis', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "easymock", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@easymock//jar"], + runtime_deps = [ + ":cglib-3_2", + ":objenesis", + ], ) java_library( - name = 'cglib-3_2', - exports = ['@cglib_3_2//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "cglib-3_2", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@cglib_3_2//jar"], ) java_library( - name = 'objenesis', - exports = ['@objenesis//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "objenesis", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@objenesis//jar"], ) - diff --git a/lib/elasticsearch/BUILD b/lib/elasticsearch/BUILD index 6c3d423559..8dc4bce3be 100644 --- a/lib/elasticsearch/BUILD +++ b/lib/elasticsearch/BUILD @@ -1,92 +1,92 @@ -package(default_visibility=['//visibility:public']) +package(default_visibility = ["//visibility:public"]) java_library( - name = 'elasticsearch', - data = [ '//lib:LICENSE-Apache2.0' ], - exports = [ '@elasticsearch//jar' ], - runtime_deps = [ - ':jna', - ':hppc', - ':jsr166e', - ':netty', - ':t-digest', - ':compress-lzf', - '//lib/joda:joda-time', - '//lib/lucene:lucene-codecs', - '//lib/lucene:lucene-highlighter', - '//lib/lucene:lucene-join', - '//lib/lucene:lucene-memory', - '//lib/lucene:lucene-sandbox', - '//lib/lucene:lucene-suggest', - '//lib/lucene:lucene-queries', - '//lib/lucene:lucene-spatial', - '//lib/jackson:jackson-core', - '//lib/jackson:jackson-dataformat-cbor', - '//lib/jackson:jackson-dataformat-smile', - ] + name = "elasticsearch", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@elasticsearch//jar"], + runtime_deps = [ + ":compress-lzf", + ":hppc", + ":jna", + ":jsr166e", + ":netty", + ":t-digest", + "//lib/jackson:jackson-core", + "//lib/jackson:jackson-dataformat-cbor", + "//lib/jackson:jackson-dataformat-smile", + "//lib/joda:joda-time", + "//lib/lucene:lucene-codecs", + "//lib/lucene:lucene-highlighter", + "//lib/lucene:lucene-join", + "//lib/lucene:lucene-memory", + "//lib/lucene:lucene-queries", + "//lib/lucene:lucene-sandbox", + "//lib/lucene:lucene-spatial", + "//lib/lucene:lucene-suggest", + ], ) # Java REST client for Elasticsearch. -VERSION = '0.1.7' +VERSION = "0.1.7" java_library( - name = 'jest-common', - exports = [ '@jest_common//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], + name = "jest-common", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@jest_common//jar"], ) java_library( - name = 'jest', - exports = [ '@jest//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], - runtime_deps = [ - ':elasticsearch', - ':jest-common', - '//lib/commons:lang3', - '//lib/httpcomponents:httpasyncclient', - '//lib/httpcomponents:httpclient', - '//lib/httpcomponents:httpcore-nio', - '//lib/httpcomponents:httpcore-niossl', - ], + name = "jest", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@jest//jar"], + runtime_deps = [ + ":elasticsearch", + ":jest-common", + "//lib/commons:lang3", + "//lib/httpcomponents:httpasyncclient", + "//lib/httpcomponents:httpclient", + "//lib/httpcomponents:httpcore-nio", + "//lib/httpcomponents:httpcore-niossl", + ], ) java_library( - name = 'compress-lzf', - exports = [ '@compress_lzf//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], - visibility = ['//lib/elasticsearch:__pkg__'], + name = "compress-lzf", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//lib/elasticsearch:__pkg__"], + exports = ["@compress_lzf//jar"], ) java_library( - name = 'hppc', - exports = [ '@hppc//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], - visibility = ['//lib/elasticsearch:__pkg__'], + name = "hppc", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//lib/elasticsearch:__pkg__"], + exports = ["@hppc//jar"], ) java_library( - name = 'jsr166e', - exports = [ '@jsr166e//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], - visibility = ['//lib/elasticsearch:__pkg__'], + name = "jsr166e", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//lib/elasticsearch:__pkg__"], + exports = ["@jsr166e//jar"], ) java_library( - name = 'netty', - exports = [ '@netty//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], - visibility = ['//lib/elasticsearch:__pkg__'], + name = "netty", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//lib/elasticsearch:__pkg__"], + exports = ["@netty//jar"], ) java_library( - name = 't-digest', - exports = [ '@t_digest//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], - visibility = ['//lib/elasticsearch:__pkg__'], + name = "t-digest", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//lib/elasticsearch:__pkg__"], + exports = ["@t_digest//jar"], ) java_library( - name = 'jna', - exports = [ '@jna//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], + name = "jna", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@jna//jar"], ) diff --git a/lib/fonts/BUILD b/lib/fonts/BUILD index a7645249ae..fb5ea84f86 100644 --- a/lib/fonts/BUILD +++ b/lib/fonts/BUILD @@ -1,13 +1,13 @@ -load('//tools/bzl:genrule2.bzl', 'genrule2') +load("//tools/bzl:genrule2.bzl", "genrule2") # Source Code Pro. Version 2.010 Roman / 1.030 Italics # https://github.com/adobe-fonts/source-code-pro/releases/tag/2.010R-ro%2F1.030R-it filegroup( - name = 'sourcecodepro', - srcs = [ - 'SourceCodePro-Regular.woff', - 'SourceCodePro-Regular.woff2' - ], - data = [ "//lib:LICENSE-OFL1.1" ], - visibility = ['//visibility:public'], + name = "sourcecodepro", + srcs = [ + "SourceCodePro-Regular.woff", + "SourceCodePro-Regular.woff2", + ], + data = ["//lib:LICENSE-OFL1.1"], + visibility = ["//visibility:public"], ) diff --git a/lib/greenmail/BUILD b/lib/greenmail/BUILD index 9dd45bc51a..55eb9f38a4 100644 --- a/lib/greenmail/BUILD +++ b/lib/greenmail/BUILD @@ -1,7 +1,8 @@ -package(default_visibility = ['//visibility:public']) +package(default_visibility = ["//visibility:public"]) + java_library( - name = 'greenmail', - exports = ['@greenmail//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "greenmail", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@greenmail//jar"], ) diff --git a/lib/guice/BUILD b/lib/guice/BUILD index 43018e0345..6d7bf91dd3 100644 --- a/lib/guice/BUILD +++ b/lib/guice/BUILD @@ -1,54 +1,54 @@ java_library( - name = 'guice', - exports = [ - ':guice_library', - ':javax-inject', - ':multibindings', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "guice", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = [ + ":guice_library", + ":javax-inject", + ":multibindings", + ], ) java_library( - name = 'guice_library', - exports = ['@guice_library//jar'], - runtime_deps = ['aopalliance'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "guice_library", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@guice_library//jar"], + runtime_deps = ["aopalliance"], ) java_library( - name = 'guice-assistedinject', - exports = ['@guice_assistedinject//jar'], - runtime_deps = [':guice'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "guice-assistedinject", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@guice_assistedinject//jar"], + runtime_deps = [":guice"], ) java_library( - name = 'guice-servlet', - exports = ['@guice_servlet//jar'], - runtime_deps = [':guice'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "guice-servlet", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@guice_servlet//jar"], + runtime_deps = [":guice"], ) java_library( - name = 'aopalliance', - exports = ['@aopalliance//jar'], - data = ['//lib:LICENSE-PublicDomain'], + name = "aopalliance", + data = ["//lib:LICENSE-PublicDomain"], + exports = ["@aopalliance//jar"], ) java_library( - name = 'javax-inject', - exports = ['@javax_inject//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "javax-inject", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@javax_inject//jar"], ) java_library( - name = 'multibindings', - exports = [ '@multibindings//jar' ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "multibindings", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@multibindings//jar"], ) diff --git a/lib/gwt/BUILD b/lib/gwt/BUILD index 5d826d2f5f..487e05b326 100644 --- a/lib/gwt/BUILD +++ b/lib/gwt/BUILD @@ -1,45 +1,45 @@ [java_library( - name = n, - exports = ['@%s//jar' % n.replace("-", "_")], - visibility = ["//visibility:public"], - data = ['//lib:LICENSE-Apache2.0'], + name = n, + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@%s//jar" % n.replace("-", "_")], ) for n in [ - 'ant', - 'colt', - 'dev', - 'javax-validation', - 'jsinterop-annotations', - 'tapestry', - 'user', - 'w3c-css-sac', + "ant", + "colt", + "dev", + "javax-validation", + "jsinterop-annotations", + "tapestry", + "user", + "w3c-css-sac", ]] java_library( - name = 'user-neverlink', - exports = ['@user//jar'], - visibility = ['//visibility:public'], - neverlink = 1, - data = ['//lib:LICENSE-Apache2.0'], + name = "user-neverlink", + data = ["//lib:LICENSE-Apache2.0"], + neverlink = 1, + visibility = ["//visibility:public"], + exports = ["@user//jar"], ) java_library( - name = 'dev-neverlink', - exports = ['@dev//jar'], - visibility = ['//visibility:public'], - neverlink = 1, - data = ['//lib:LICENSE-Apache2.0'], + name = "dev-neverlink", + data = ["//lib:LICENSE-Apache2.0"], + neverlink = 1, + visibility = ["//visibility:public"], + exports = ["@dev//jar"], ) java_library( - name = 'javax-validation_src', - exports = ['@javax_validation//jar:src'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "javax-validation_src", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@javax_validation//jar:src"], ) java_library( - name = 'jsinterop-annotations_src', - exports = ['@jsinterop_annotations//jar:src'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "jsinterop-annotations_src", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@jsinterop_annotations//jar:src"], ) diff --git a/lib/highlightjs/BUILD b/lib/highlightjs/BUILD index 5fb2a716c4..b10bc5507d 100644 --- a/lib/highlightjs/BUILD +++ b/lib/highlightjs/BUILD @@ -1,4 +1,3 @@ - exports_files([ - 'highlight.min.js', + "highlight.min.js", ]) diff --git a/lib/httpcomponents/BUILD b/lib/httpcomponents/BUILD index c11df29fc1..2b2cc6f804 100644 --- a/lib/httpcomponents/BUILD +++ b/lib/httpcomponents/BUILD @@ -1,53 +1,53 @@ -package(default_visibility = ['//visibility:public']) +package(default_visibility = ["//visibility:public"]) java_library( - name = 'fluent-hc', - exports = ['@fluent_hc//jar'], - runtime_deps = [':httpclient'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "fluent-hc", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@fluent_hc//jar"], + runtime_deps = [":httpclient"], ) java_library( - name = 'httpclient', - exports = ['@httpclient//jar'], - runtime_deps = [ - '//lib/commons:codec', - ':httpcore', - '//lib/log:jcl-over-slf4j', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "httpclient", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@httpclient//jar"], + runtime_deps = [ + ":httpcore", + "//lib/commons:codec", + "//lib/log:jcl-over-slf4j", + ], ) java_library( - name = 'httpcore', - exports = ['@httpcore//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "httpcore", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@httpcore//jar"], ) java_library( - name = 'httpmime', - exports = ['@httpmime//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "httpmime", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@httpmime//jar"], ) java_library( - name = 'httpasyncclient', - exports = [ '@httpasyncclient//jar' ], - data = ['//lib:LICENSE-Apache2.0'], + name = "httpasyncclient", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@httpasyncclient//jar"], ) java_library( - name = 'httpcore-nio', - exports = [ '@httpcore_nio//jar' ], - data = ['//lib:LICENSE-Apache2.0'], + name = "httpcore-nio", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@httpcore_nio//jar"], ) java_library( - name = 'httpcore-niossl', - exports = ['@httpcore_niossl//jar'], - data = ['//lib:LICENSE-Apache2.0'], + name = "httpcore-niossl", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@httpcore_niossl//jar"], ) diff --git a/lib/jackson/BUILD b/lib/jackson/BUILD index 87ea42e40d..4847371502 100644 --- a/lib/jackson/BUILD +++ b/lib/jackson/BUILD @@ -1,21 +1,21 @@ -package(default_visibility = [ "//visibility:public"]) +package(default_visibility = ["//visibility:public"]) -VERSION = '2.6.6' +VERSION = "2.6.6" java_library( - name = 'jackson-core', - exports = [ '@jackson_core//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], + name = "jackson-core", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@jackson_core//jar"], ) java_library( - name = 'jackson-dataformat-smile', - exports = [ '@jackson_dataformat_smile//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], + name = "jackson-dataformat-smile", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@jackson_dataformat_smile//jar"], ) java_library( - name = 'jackson-dataformat-cbor', - exports = [ '@jackson_dataformat_cbor//jar' ], - data = [ '//lib:LICENSE-Apache2.0' ], + name = "jackson-dataformat-cbor", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@jackson_dataformat_cbor//jar"], ) diff --git a/lib/jetty/BUILD b/lib/jetty/BUILD index d6e6355c84..c6ba9c85ec 100644 --- a/lib/jetty/BUILD +++ b/lib/jetty/BUILD @@ -1,76 +1,76 @@ java_library( - name = 'servlet', - exports = ['@jetty_servlet//jar'], - runtime_deps = [':security'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "servlet", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@jetty_servlet//jar"], + runtime_deps = [":security"], ) java_library( - name = 'security', - exports = ['@jetty_security//jar'], - runtime_deps = [':server'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "security", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@jetty_security//jar"], + runtime_deps = [":server"], ) java_library( - name = 'servlets', - exports = ['@jetty_servlets//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "servlets", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@jetty_servlets//jar"], ) java_library( - name = 'server', - exports = [ - '@jetty_server//jar', - ':continuation', - ':http', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "server", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = [ + ":continuation", + ":http", + "@jetty_server//jar", + ], ) java_library( - name = 'jmx', - exports = [ - '@jetty_jmx//jar', - ':continuation', - ':http', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "jmx", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = [ + ":continuation", + ":http", + "@jetty_jmx//jar", + ], ) java_library( - name = 'continuation', - exports = ['@jetty_continuation//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "continuation", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@jetty_continuation//jar"], ) java_library( - name = 'http', - exports = [ - '@jetty_http//jar', - ':io', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "http", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = [ + ":io", + "@jetty_http//jar", + ], ) java_library( - name = 'io', - exports = [ - '@jetty_io//jar', - ':util', - ], - data = ['//lib:LICENSE-Apache2.0'], + name = "io", + data = ["//lib:LICENSE-Apache2.0"], + exports = [ + ":util", + "@jetty_io//jar", + ], ) java_library( - name = 'util', - exports = ['@jetty_util//jar'], - data = ['//lib:LICENSE-Apache2.0'], + name = "util", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@jetty_util//jar"], ) diff --git a/lib/jgit/org.eclipse.jgit.archive/BUILD b/lib/jgit/org.eclipse.jgit.archive/BUILD index 7d6fe221e2..d4e0a8ce4f 100644 --- a/lib/jgit/org.eclipse.jgit.archive/BUILD +++ b/lib/jgit/org.eclipse.jgit.archive/BUILD @@ -1,7 +1,7 @@ java_library( - name = 'jgit-archive', - exports = ['@jgit_archive//jar'], - runtime_deps = ['//lib/jgit/org.eclipse.jgit:jgit'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-jgit'], + name = "jgit-archive", + data = ["//lib:LICENSE-jgit"], + visibility = ["//visibility:public"], + exports = ["@jgit_archive//jar"], + runtime_deps = ["//lib/jgit/org.eclipse.jgit:jgit"], ) diff --git a/lib/jgit/org.eclipse.jgit.http.server/BUILD b/lib/jgit/org.eclipse.jgit.http.server/BUILD index f4c66c0cd0..c448c4b2b9 100644 --- a/lib/jgit/org.eclipse.jgit.http.server/BUILD +++ b/lib/jgit/org.eclipse.jgit.http.server/BUILD @@ -1,7 +1,7 @@ java_library( - name = 'jgit-servlet', - exports = ['@jgit_servlet//jar'], - runtime_deps = ['//lib/jgit/org.eclipse.jgit:jgit'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-jgit'], + name = "jgit-servlet", + data = ["//lib:LICENSE-jgit"], + visibility = ["//visibility:public"], + exports = ["@jgit_servlet//jar"], + runtime_deps = ["//lib/jgit/org.eclipse.jgit:jgit"], ) diff --git a/lib/jgit/org.eclipse.jgit.junit/BUILD b/lib/jgit/org.eclipse.jgit.junit/BUILD index 10e9874f26..2c8966a2fe 100644 --- a/lib/jgit/org.eclipse.jgit.junit/BUILD +++ b/lib/jgit/org.eclipse.jgit.junit/BUILD @@ -1,7 +1,7 @@ java_library( - name = 'junit', - exports = ['@jgit_junit//jar'], - runtime_deps = ['//lib/jgit/org.eclipse.jgit:jgit'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "junit", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@jgit_junit//jar"], + runtime_deps = ["//lib/jgit/org.eclipse.jgit:jgit"], ) diff --git a/lib/jgit/org.eclipse.jgit/BUILD b/lib/jgit/org.eclipse.jgit/BUILD index e220a960fe..33de929467 100644 --- a/lib/jgit/org.eclipse.jgit/BUILD +++ b/lib/jgit/org.eclipse.jgit/BUILD @@ -1,14 +1,14 @@ java_library( - name = 'jgit', - exports = ['@jgit//jar'], - runtime_deps = [':javaewah'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-jgit'], + name = "jgit", + data = ["//lib:LICENSE-jgit"], + visibility = ["//visibility:public"], + exports = ["@jgit//jar"], + runtime_deps = [":javaewah"], ) java_library( - name = 'javaewah', - exports = ['@javaewah//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "javaewah", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@javaewah//jar"], ) diff --git a/lib/joda/BUILD b/lib/joda/BUILD index ef759d7356..e1a1924c9e 100644 --- a/lib/joda/BUILD +++ b/lib/joda/BUILD @@ -1,13 +1,13 @@ java_library( - name = 'joda-time', - exports = ['@joda_time//jar'], - runtime_deps = ['joda-convert'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "joda-time", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@joda_time//jar"], + runtime_deps = ["joda-convert"], ) java_library( - name = 'joda-convert', - exports = ['@joda_convert//jar'], - data = ['//lib:LICENSE-Apache2.0'], + name = "joda-convert", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@joda_convert//jar"], ) diff --git a/lib/js/BUILD b/lib/js/BUILD index 71fa94f3fc..9528151f0c 100644 --- a/lib/js/BUILD +++ b/lib/js/BUILD @@ -1,4 +1,5 @@ -package(default_visibility = [ "//visibility:public" ]) +package(default_visibility = ["//visibility:public"]) + load("//tools/bzl:js.bzl", "bower_component", "js_component") # For updating the bower versions, run @@ -17,18 +18,18 @@ load("//tools/bzl:js.bzl", "bower_component", "js_component") # 4) remove bower_component(name="my_new_dependency", .. ) here # - load("//lib/js:bower_components.bzl", "define_bower_components") + define_bower_components() js_component( - name = 'highlightjs', - srcs = [ "//lib/highlightjs:highlight.min.js" ], - license = '//lib:LICENSE-highlightjs', + name = "highlightjs", + srcs = ["//lib/highlightjs:highlight.min.js"], + license = "//lib:LICENSE-highlightjs", ) filegroup( - name = "highlightjs_files", - srcs = [ "//lib/highlightjs:highlight.min.js" ], - data = ['//lib:LICENSE-highlightjs',], + name = "highlightjs_files", + srcs = ["//lib/highlightjs:highlight.min.js"], + data = ["//lib:LICENSE-highlightjs"], ) diff --git a/lib/jsoup/BUILD b/lib/jsoup/BUILD index e4d58c9c2e..3142dacb02 100644 --- a/lib/jsoup/BUILD +++ b/lib/jsoup/BUILD @@ -1,6 +1,6 @@ java_library( - name = 'jsoup', - exports = ['@jsoup//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-jsoup'], + name = "jsoup", + data = ["//lib:LICENSE-jsoup"], + visibility = ["//visibility:public"], + exports = ["@jsoup//jar"], ) diff --git a/lib/log/BUILD b/lib/log/BUILD index 1e40372b6d..af83d19f53 100644 --- a/lib/log/BUILD +++ b/lib/log/BUILD @@ -1,54 +1,54 @@ java_library( - name = 'api', - exports = ['@log_api//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-slf4j'], + name = "api", + data = ["//lib:LICENSE-slf4j"], + visibility = ["//visibility:public"], + exports = ["@log_api//jar"], ) java_library( - name = 'nop', - exports = ['@log_nop//jar'], - runtime_deps = [':api'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-slf4j'], + name = "nop", + data = ["//lib:LICENSE-slf4j"], + visibility = ["//visibility:public"], + exports = ["@log_nop//jar"], + runtime_deps = [":api"], ) java_library( - name = 'impl_log4j', - exports = ['@impl_log4j//jar'], - runtime_deps = [':log4j'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-slf4j'], + name = "impl_log4j", + data = ["//lib:LICENSE-slf4j"], + visibility = ["//visibility:public"], + exports = ["@impl_log4j//jar"], + runtime_deps = [":log4j"], ) java_library( - name = 'jcl-over-slf4j', - exports = ['@jcl_over_slf4j//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-slf4j'], + name = "jcl-over-slf4j", + data = ["//lib:LICENSE-slf4j"], + visibility = ["//visibility:public"], + exports = ["@jcl_over_slf4j//jar"], ) java_library( - name = 'log4j', - exports = ['@log4j//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "log4j", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@log4j//jar"], ) java_library( - name = 'jsonevent-layout', - exports = ['@jsonevent_layout//jar'], - runtime_deps = [ - ':json-smart', - '//lib/commons:lang' - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "jsonevent-layout", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@jsonevent_layout//jar"], + runtime_deps = [ + ":json-smart", + "//lib/commons:lang", + ], ) java_library( - name = 'json-smart', - exports = ['@json_smart//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "json-smart", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@json_smart//jar"], ) diff --git a/lib/lucene/BUILD b/lib/lucene/BUILD index 4739981af6..bbf43a65b0 100644 --- a/lib/lucene/BUILD +++ b/lib/lucene/BUILD @@ -1,94 +1,95 @@ -package(default_visibility = [ "//visibility:public"]) -load('//tools/bzl:maven.bzl', 'merge_maven_jars') +package(default_visibility = ["//visibility:public"]) + +load("//tools/bzl:maven.bzl", "merge_maven_jars") # core and backward-codecs both provide # META-INF/services/org.apache.lucene.codecs.Codec, so they must be merged. merge_maven_jars( - name = 'lucene-core-and-backward-codecs', - srcs = [ - '@backward_codecs//jar', - '@lucene_core//jar', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-core-and-backward-codecs", + srcs = [ + "@backward_codecs//jar", + "@lucene_core//jar", + ], + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], ) java_library( - name = 'lucene-analyzers-common', - exports = ['@lucene_analyzers_common//jar'], - runtime_deps = [':lucene-core-and-backward-codecs'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-analyzers-common", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@lucene_analyzers_common//jar"], + runtime_deps = [":lucene-core-and-backward-codecs"], ) java_library( - name = 'lucene-codecs', - exports = ['@lucene_codecs//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-codecs", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@lucene_codecs//jar"], ) java_library( - name = 'lucene-core', - exports = ['@lucene_core//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-core", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@lucene_core//jar"], ) java_library( - name = 'lucene-misc', - exports = ['@lucene_misc//jar'], - runtime_deps = [':lucene-core-and-backward-codecs'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-misc", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@lucene_misc//jar"], + runtime_deps = [":lucene-core-and-backward-codecs"], ) java_library( - name = 'lucene-queryparser', - exports = ['@lucene_queryparser//jar'], - runtime_deps = [':lucene-core-and-backward-codecs'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-queryparser", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@lucene_queryparser//jar"], + runtime_deps = [":lucene-core-and-backward-codecs"], ) java_library( - name = 'lucene-highlighter', - exports = [ '@lucene_highlighter//jar' ], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-highlighter", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@lucene_highlighter//jar"], ) java_library( - name = 'lucene-join', - exports = [ '@lucene_join//jar' ], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-join", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@lucene_join//jar"], ) java_library( - name = 'lucene-memory', - exports = [ '@lucene_memory//jar' ], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-memory", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@lucene_memory//jar"], ) java_library( - name = 'lucene-sandbox', - exports = [ '@lucene_sandbox//jar' ], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-sandbox", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@lucene_sandbox//jar"], ) java_library( - name = 'lucene-spatial', - exports = [ '@lucene_spatial//jar' ], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-spatial", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@lucene_spatial//jar"], ) java_library( - name = 'lucene-suggest', - exports = [ '@lucene_suggest//jar' ], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-suggest", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@lucene_suggest//jar"], ) java_library( - name = 'lucene-queries', - exports = [ '@lucene_queries//jar' ], - data = ['//lib:LICENSE-Apache2.0'], + name = "lucene-queries", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@lucene_queries//jar"], ) diff --git a/lib/mail/BUILD b/lib/mail/BUILD index 40dd30275b..eca2b6b7f9 100644 --- a/lib/mail/BUILD +++ b/lib/mail/BUILD @@ -1,6 +1,6 @@ java_library( - name = 'mail', - exports = ['@mail//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "mail", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = ["@mail//jar"], ) diff --git a/lib/mina/BUILD b/lib/mina/BUILD index b3ba684487..a30b3d2781 100644 --- a/lib/mina/BUILD +++ b/lib/mina/BUILD @@ -1,14 +1,14 @@ java_library( - name = 'sshd', - exports = ['@sshd//jar'], - visibility = ['//visibility:public'], - runtime_deps = [':core'], - data = ['//lib:LICENSE-Apache2.0'], + name = "sshd", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@sshd//jar"], + runtime_deps = [":core"], ) java_library( - name = 'core', - exports = ['@mina_core//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "core", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@mina_core//jar"], ) diff --git a/lib/openid/BUILD b/lib/openid/BUILD index 8c5da45649..2b36fbba8b 100644 --- a/lib/openid/BUILD +++ b/lib/openid/BUILD @@ -1,26 +1,26 @@ java_library( - name = 'consumer', - exports = ['@openid_consumer//jar'], - runtime_deps = [ - ':nekohtml', - ':xerces', - '//lib/httpcomponents:httpclient', - '//lib/log:jcl-over-slf4j', - '//lib/guice:guice', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-Apache2.0'], + name = "consumer", + data = ["//lib:LICENSE-Apache2.0"], + visibility = ["//visibility:public"], + exports = ["@openid_consumer//jar"], + runtime_deps = [ + ":nekohtml", + ":xerces", + "//lib/guice", + "//lib/httpcomponents:httpclient", + "//lib/log:jcl-over-slf4j", + ], ) java_library( - name = 'nekohtml', - exports = ['@nekohtml//jar'], - runtime_deps = [':xerces'], - data = ['//lib:LICENSE-Apache2.0'], + name = "nekohtml", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@nekohtml//jar"], + runtime_deps = [":xerces"], ) java_library( - name = 'xerces', - exports = ['@xerces//jar'], - data = ['//lib:LICENSE-Apache2.0'], + name = "xerces", + data = ["//lib:LICENSE-Apache2.0"], + exports = ["@xerces//jar"], ) diff --git a/lib/ow2/BUILD b/lib/ow2/BUILD index 4c373572b3..aebca490af 100644 --- a/lib/ow2/BUILD +++ b/lib/ow2/BUILD @@ -1,35 +1,35 @@ java_library( - name = 'ow2-asm', - exports = ['@ow2_asm//jar'], - visibility = ["//visibility:public"], - data = ['//lib:LICENSE-ow2'], + name = "ow2-asm", + data = ["//lib:LICENSE-ow2"], + visibility = ["//visibility:public"], + exports = ["@ow2_asm//jar"], ) java_library( - name = 'ow2-asm-analysis', - exports = ['@ow2_asm_analysis//jar'], - visibility = ["//visibility:public"], - data = ['//lib:LICENSE-ow2'], + name = "ow2-asm-analysis", + data = ["//lib:LICENSE-ow2"], + visibility = ["//visibility:public"], + exports = ["@ow2_asm_analysis//jar"], ) java_library( - name = 'ow2-asm-commons', - exports = ['@ow2_asm_commons//jar'], - runtime_deps = [':ow2-asm-tree'], - visibility = ["//visibility:public"], - data = ['//lib:LICENSE-ow2'], + name = "ow2-asm-commons", + data = ["//lib:LICENSE-ow2"], + visibility = ["//visibility:public"], + exports = ["@ow2_asm_commons//jar"], + runtime_deps = [":ow2-asm-tree"], ) java_library( - name = 'ow2-asm-tree', - exports = ['@ow2_asm_tree//jar'], - visibility = ["//visibility:public"], - data = ['//lib:LICENSE-ow2'], + name = "ow2-asm-tree", + data = ["//lib:LICENSE-ow2"], + visibility = ["//visibility:public"], + exports = ["@ow2_asm_tree//jar"], ) java_library( - name = 'ow2-asm-util', - exports = ['@ow2_asm_util//jar'], - visibility = ["//visibility:public"], - data = ['//lib:LICENSE-ow2'], + name = "ow2-asm-util", + data = ["//lib:LICENSE-ow2"], + visibility = ["//visibility:public"], + exports = ["@ow2_asm_util//jar"], ) diff --git a/lib/powermock/BUILD b/lib/powermock/BUILD index 075b6bf871..d0cab9b2f8 100644 --- a/lib/powermock/BUILD +++ b/lib/powermock/BUILD @@ -1,66 +1,66 @@ java_library( - name = 'powermock-module-junit4', - exports = [ - '@powermock_module_junit4//jar', - ':powermock-module-junit4-common', - '//lib:junit', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "powermock-module-junit4", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = [ + ":powermock-module-junit4-common", + "//lib:junit", + "@powermock_module_junit4//jar", + ], ) java_library( - name = 'powermock-module-junit4-common', - exports = [ - '@powermock_module_junit4_common//jar', - ':powermock-reflect', - '//lib:junit', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "powermock-module-junit4-common", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = [ + ":powermock-reflect", + "//lib:junit", + "@powermock_module_junit4_common//jar", + ], ) java_library( - name = 'powermock-reflect', - exports = [ - '@powermock_reflect//jar', - '//lib:junit', - '//lib/easymock:objenesis', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "powermock-reflect", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = [ + "//lib:junit", + "//lib/easymock:objenesis", + "@powermock_reflect//jar", + ], ) java_library( - name = 'powermock-api-easymock', - exports = [ - '@powermock_api_easymock//jar', - ':powermock-api-support', - '//lib/easymock:easymock', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "powermock-api-easymock", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = [ + ":powermock-api-support", + "//lib/easymock", + "@powermock_api_easymock//jar", + ], ) java_library( - name = 'powermock-api-support', - exports = [ - '@powermock_api_support//jar', - ':powermock-core', - ':powermock-reflect', - '//lib:junit', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "powermock-api-support", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = [ + ":powermock-core", + ":powermock-reflect", + "//lib:junit", + "@powermock_api_support//jar", + ], ) java_library( - name = 'powermock-core', - exports = [ - ':powermock-reflect', - '//lib:javassist', - '//lib:junit', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-DO_NOT_DISTRIBUTE'], + name = "powermock-core", + data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"], + visibility = ["//visibility:public"], + exports = [ + ":powermock-reflect", + "//lib:javassist", + "//lib:junit", + ], ) diff --git a/lib/prolog/BUILD b/lib/prolog/BUILD index a45cff27fb..875f13569d 100644 --- a/lib/prolog/BUILD +++ b/lib/prolog/BUILD @@ -1,51 +1,51 @@ java_library( - name = 'runtime', - exports = ['@prolog_runtime//jar'], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-prologcafe'], + name = "runtime", + data = ["//lib:LICENSE-prologcafe"], + visibility = ["//visibility:public"], + exports = ["@prolog_runtime//jar"], ) java_library( - name = 'compiler', - exports = ['@prolog_compiler//jar'], - runtime_deps = [ - ':io', - ':runtime', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-prologcafe'], + name = "compiler", + data = ["//lib:LICENSE-prologcafe"], + visibility = ["//visibility:public"], + exports = ["@prolog_compiler//jar"], + runtime_deps = [ + ":io", + ":runtime", + ], ) java_library( - name = 'io', - exports = ['@prolog_io//jar'], - data = ['//lib:LICENSE-prologcafe'], + name = "io", + data = ["//lib:LICENSE-prologcafe"], + exports = ["@prolog_io//jar"], ) java_library( - name = 'cafeteria', - exports = ['@cafeteria//jar'], - runtime_deps = [ - 'io', - 'runtime', - ], - visibility = ['//visibility:public'], - data = ['//lib:LICENSE-prologcafe'], + name = "cafeteria", + data = ["//lib:LICENSE-prologcafe"], + visibility = ["//visibility:public"], + exports = ["@cafeteria//jar"], + runtime_deps = [ + "io", + "runtime", + ], ) java_binary( - name = 'compiler_bin', - main_class = 'BuckPrologCompiler', - runtime_deps = [':compiler_lib'], - visibility = ['//visibility:public'], + name = "compiler_bin", + main_class = "BuckPrologCompiler", + visibility = ["//visibility:public"], + runtime_deps = [":compiler_lib"], ) java_library( - name = 'compiler_lib', - srcs = ['java/BuckPrologCompiler.java'], - deps = [ - ':compiler', - ':runtime', - ], - visibility = ['//visibility:public'], + name = "compiler_lib", + srcs = ["java/BuckPrologCompiler.java"], + visibility = ["//visibility:public"], + deps = [ + ":compiler", + ":runtime", + ], ) diff --git a/plugins/BUILD b/plugins/BUILD index 27690c8230..86788d74f3 100644 --- a/plugins/BUILD +++ b/plugins/BUILD @@ -1,14 +1,14 @@ -load('//tools/bzl:genrule2.bzl', 'genrule2') -load('//tools/bzl:plugins.bzl', 'CORE_PLUGINS') +load("//tools/bzl:genrule2.bzl", "genrule2") +load("//tools/bzl:plugins.bzl", "CORE_PLUGINS") genrule2( - name = 'core', - srcs = ['//plugins/%s:%s.jar' % (n, n) for n in CORE_PLUGINS], - cmd = 'mkdir -p $$TMP/WEB-INF/plugins;' + - 'for s in $(SRCS) ; do ' + - 'ln -s $$ROOT/$$s $$TMP/WEB-INF/plugins;done;' + - 'cd $$TMP;' + - 'zip -qr $$ROOT/$@ .', - outs = [ 'core.zip' ], - visibility = ['//visibility:public'], + name = "core", + srcs = ["//plugins/%s:%s.jar" % (n, n) for n in CORE_PLUGINS], + outs = ["core.zip"], + cmd = "mkdir -p $$TMP/WEB-INF/plugins;" + + "for s in $(SRCS) ; do " + + "ln -s $$ROOT/$$s $$TMP/WEB-INF/plugins;done;" + + "cd $$TMP;" + + "zip -qr $$ROOT/$@ .", + visibility = ["//visibility:public"], ) diff --git a/polygerrit-ui/BUILD b/polygerrit-ui/BUILD index 67a5456880..1f11cdeedd 100644 --- a/polygerrit-ui/BUILD +++ b/polygerrit-ui/BUILD @@ -1,43 +1,43 @@ package( - default_visibility=["//visibility:public"] + default_visibility = ["//visibility:public"], ) load("//tools/bzl:js.bzl", "bower_component_bundle") -load('//tools/bzl:genrule2.bzl', 'genrule2') +load("//tools/bzl:genrule2.bzl", "genrule2") bower_component_bundle( - name = "polygerrit_components.bower_components", - deps = [ - '//lib/js:es6-promise', - '//lib/js:fetch', - # TODO(hanwen): this is inserted separately in the UI zip. Do we need this here? - '//lib/js:highlightjs', - '//lib/js:iron-a11y-keys-behavior', - '//lib/js:iron-autogrow-textarea', - '//lib/js:iron-dropdown', - '//lib/js:iron-input', - '//lib/js:iron-overlay-behavior', - '//lib/js:iron-selector', - '//lib/js:moment', - '//lib/js:page', - '//lib/js:polymer', - '//lib/js:promise-polyfill', -]) - + name = "polygerrit_components.bower_components", + deps = [ + "//lib/js:es6-promise", + "//lib/js:fetch", + # TODO(hanwen): this is inserted separately in the UI zip. Do we need this here? + "//lib/js:highlightjs", + "//lib/js:iron-a11y-keys-behavior", + "//lib/js:iron-autogrow-textarea", + "//lib/js:iron-dropdown", + "//lib/js:iron-input", + "//lib/js:iron-overlay-behavior", + "//lib/js:iron-selector", + "//lib/js:moment", + "//lib/js:page", + "//lib/js:polymer", + "//lib/js:promise-polyfill", + ], +) genrule2( - name = 'fonts', - cmd = ' && '.join([ - 'mkdir -p $$TMP/fonts', - 'cp $(SRCS) $$TMP/fonts/', - 'cd $$TMP', - "find fonts/ -exec touch -t 198001010000 '{}' ';'", - 'zip -qr $$ROOT/$@ fonts', - ]), - srcs = [ - '//lib/fonts:sourcecodepro', - ], - outs = ['fonts.zip',], - visibility = ['//visibility:public'], - output_to_bindir = 1, + name = "fonts", + srcs = [ + "//lib/fonts:sourcecodepro", + ], + outs = ["fonts.zip"], + cmd = " && ".join([ + "mkdir -p $$TMP/fonts", + "cp $(SRCS) $$TMP/fonts/", + "cd $$TMP", + "find fonts/ -exec touch -t 198001010000 '{}' ';'", + "zip -qr $$ROOT/$@ fonts", + ]), + output_to_bindir = 1, + visibility = ["//visibility:public"], ) diff --git a/polygerrit-ui/app/BUILD b/polygerrit-ui/app/BUILD index 91240e5336..94f9bc80de 100644 --- a/polygerrit-ui/app/BUILD +++ b/polygerrit-ui/app/BUILD @@ -1,108 +1,123 @@ package( - default_visibility = ["//visibility:public"]) + default_visibility = ["//visibility:public"], +) -load('//tools/bzl:genrule2.bzl', 'genrule2') +load("//tools/bzl:genrule2.bzl", "genrule2") load( - "//tools/bzl:js.bzl", - "bower_component_bundle", "vulcanize", - "bower_component", "js_component") + "//tools/bzl:js.bzl", + "bower_component_bundle", + "vulcanize", + "bower_component", + "js_component", +) vulcanize( - name = "gr-app", - app = 'elements/gr-app.html', - srcs = glob( - ['**/*.html', '**/*.js'], - exclude = [ - 'bower_components/**', - 'index.html', - 'test/**', - '**/*_test.html', - ]), - deps = [ "//polygerrit-ui:polygerrit_components.bower_components"], + name = "gr-app", + srcs = glob( + [ + "**/*.html", + "**/*.js", + ], + exclude = [ + "bower_components/**", + "index.html", + "test/**", + "**/*_test.html", + ], + ), + app = "elements/gr-app.html", + deps = ["//polygerrit-ui:polygerrit_components.bower_components"], ) filegroup( - name = "top_sources", - srcs = [ - 'favicon.ico', - 'index.html', - ], + name = "top_sources", + srcs = [ + "favicon.ico", + "index.html", + ], ) filegroup( - name = "css_sources", - srcs = glob(['styles/**/*.css']) + name = "css_sources", + srcs = glob(["styles/**/*.css"]), ) genrule2( - name = "polygerrit_ui", - cmd = " && ".join([ - "mkdir -p $$TMP/polygerrit_ui/{styles,fonts,bower_components/{highlightjs,webcomponentsjs},elements}", - "cp $(locations :gr-app) $$TMP/polygerrit_ui/elements/", - "cp $(locations //lib/fonts:sourcecodepro) $$TMP/polygerrit_ui/fonts/", - "for f in $(locations :top_sources); do cp $$f $$TMP/polygerrit_ui/; done", - "for f in $(locations :css_sources); do cp $$f $$TMP/polygerrit_ui/styles; done", - "for f in $(locations //lib/js:highlightjs_files); do cp $$f $$TMP/polygerrit_ui/bower_components/highlightjs/ ; done", - "unzip -qd $$TMP/polygerrit_ui/bower_components $(location @webcomponentsjs//:zipfile) webcomponentsjs/webcomponents-lite.js", - "cd $$TMP", - "find . -exec touch -t 198001010000 '{}' ';'", - "zip -qr $$ROOT/$@ *", - ]), - srcs = [ - "//lib/fonts:sourcecodepro", - "//lib/js:highlightjs_files", - ":top_sources", - ":css_sources", - ":gr-app", - # we extract from the zip, but depend on the component for license checking. - "@webcomponentsjs//:zipfile", - "//lib/js:webcomponentsjs", - ], - outs = [ "polygerrit_ui.zip" ], + name = "polygerrit_ui", + srcs = [ + "//lib/fonts:sourcecodepro", + "//lib/js:highlightjs_files", + ":top_sources", + ":css_sources", + ":gr-app", + # we extract from the zip, but depend on the component for license checking. + "@webcomponentsjs//:zipfile", + "//lib/js:webcomponentsjs", + ], + outs = ["polygerrit_ui.zip"], + cmd = " && ".join([ + "mkdir -p $$TMP/polygerrit_ui/{styles,fonts,bower_components/{highlightjs,webcomponentsjs},elements}", + "cp $(locations :gr-app) $$TMP/polygerrit_ui/elements/", + "cp $(locations //lib/fonts:sourcecodepro) $$TMP/polygerrit_ui/fonts/", + "for f in $(locations :top_sources); do cp $$f $$TMP/polygerrit_ui/; done", + "for f in $(locations :css_sources); do cp $$f $$TMP/polygerrit_ui/styles; done", + "for f in $(locations //lib/js:highlightjs_files); do cp $$f $$TMP/polygerrit_ui/bower_components/highlightjs/ ; done", + "unzip -qd $$TMP/polygerrit_ui/bower_components $(location @webcomponentsjs//:zipfile) webcomponentsjs/webcomponents-lite.js", + "cd $$TMP", + "find . -exec touch -t 198001010000 '{}' ';'", + "zip -qr $$ROOT/$@ *", + ]), ) bower_component_bundle( - name = 'test_components', - testonly = 1, - deps = [ - '//polygerrit-ui:polygerrit_components.bower_components', - '//lib/js:iron-test-helpers', - '//lib/js:test-fixture', - '//lib/js:web-component-tester', - ], + name = "test_components", + testonly = 1, + deps = [ + "//lib/js:iron-test-helpers", + "//lib/js:test-fixture", + "//lib/js:web-component-tester", + "//polygerrit-ui:polygerrit_components.bower_components", + ], ) filegroup( - name = "pg_code", - srcs = glob([ - '**/*.html', - '**/*.js', - ], exclude = [ - 'bower_components/**', - ]) + name = "pg_code", + srcs = glob( + [ + "**/*.html", + "**/*.js", + ], + exclude = [ + "bower_components/**", + ], + ), ) genrule2( - name = "pg_code_zip", - outs = [ "pg_code.zip", ], - srcs = [ ":pg_code" ], - cmd = " && ".join([ - ("tar -hcf- $(locations :pg_code) |" - + " tar --strip-components=2 -C $$TMP/ -xf-"), - "cd $$TMP", - "find . -exec touch -t 198001010000 '{}' ';'", - "zip -rq $$ROOT/$@ *"]) + name = "pg_code_zip", + srcs = [":pg_code"], + outs = ["pg_code.zip"], + cmd = " && ".join([ + ("tar -hcf- $(locations :pg_code) |" + + " tar --strip-components=2 -C $$TMP/ -xf-"), + "cd $$TMP", + "find . -exec touch -t 198001010000 '{}' ';'", + "zip -rq $$ROOT/$@ *", + ]), ) sh_test( - name = "wct_test", - srcs = [ "wct_test.sh" ], - data = [ - ":pg_code.zip", - ":test_components.zip", - "test/index.html", - ], - size = "large", - # Should not run sandboxed. - tags = ["local", "manual"], + name = "wct_test", + size = "large", + srcs = ["wct_test.sh"], + data = [ + "test/index.html", + ":pg_code.zip", + ":test_components.zip", + ], + # Should not run sandboxed. + tags = [ + "local", + "manual", + ], ) diff --git a/tools/BUILD b/tools/BUILD index ff64faab99..060cbd8787 100644 --- a/tools/BUILD +++ b/tools/BUILD @@ -1,6 +1,6 @@ py_binary( - name = 'merge_jars', - srcs = ['merge_jars.py'], - main = 'merge_jars.py', - visibility = ['//visibility:public'], + name = "merge_jars", + srcs = ["merge_jars.py"], + main = "merge_jars.py", + visibility = ["//visibility:public"], ) diff --git a/tools/bzl/BUILD b/tools/bzl/BUILD index bfbbd21d7b..a0f5bd1408 100644 --- a/tools/bzl/BUILD +++ b/tools/bzl/BUILD @@ -1,6 +1,5 @@ - exports_files([ - "license-map.py", - "test_empty.sh", - "test_license.sh", + "license-map.py", + "test_empty.sh", + "test_license.sh", ]) diff --git a/tools/eclipse/BUILD b/tools/eclipse/BUILD index 41c89b1f71..2b3f77aa81 100644 --- a/tools/eclipse/BUILD +++ b/tools/eclipse/BUILD @@ -1,68 +1,69 @@ -load('//tools/bzl:pkg_war.bzl', 'LIBS', 'PGMLIBS') -load('//tools/bzl:classpath.bzl', 'classpath_collector') -load('//tools/bzl:plugins.bzl', - 'CORE_PLUGINS', - 'CUSTOM_PLUGINS') +load("//tools/bzl:pkg_war.bzl", "LIBS", "PGMLIBS") +load("//tools/bzl:classpath.bzl", "classpath_collector") +load( + "//tools/bzl:plugins.bzl", + "CORE_PLUGINS", + "CUSTOM_PLUGINS", +) PROVIDED_DEPS = [ - '//lib/bouncycastle:bcprov', - '//lib/bouncycastle:bcpg', - '//lib/bouncycastle:bcpkix', + "//lib/bouncycastle:bcprov", + "//lib/bouncycastle:bcpg", + "//lib/bouncycastle:bcpkix", ] TEST_DEPS = [ - '//gerrit-gpg:gpg_tests', - '//gerrit-gwtui:ui_tests', - '//gerrit-httpd:httpd_tests', - '//gerrit-patch-jgit:jgit_patch_tests', - '//gerrit-reviewdb:client_tests', - '//gerrit-server:server_tests', + "//gerrit-gpg:gpg_tests", + "//gerrit-gwtui:ui_tests", + "//gerrit-httpd:httpd_tests", + "//gerrit-patch-jgit:jgit_patch_tests", + "//gerrit-reviewdb:client_tests", + "//gerrit-server:server_tests", ] DEPS = [ - '//gerrit-acceptance-tests:lib', - '//gerrit-gwtdebug:gwtdebug', - '//gerrit-gwtui:ui_module', - '//gerrit-main:main_lib', - '//gerrit-plugin-gwtui:gwtui-api-lib', - '//gerrit-server:server', - '//lib/asciidoctor:asciidoc_lib', - '//lib/asciidoctor:doc_indexer_lib', - '//lib/auto:auto-value', - '//lib/gwt:ant', - '//lib/gwt:colt', - '//lib/gwt:javax-validation', - '//lib/gwt:javax-validation_src', - '//lib/gwt:jsinterop-annotations', - '//lib/gwt:jsinterop-annotations_src', - '//lib/gwt:tapestry', - '//lib/gwt:w3c-css-sac', - '//lib/jetty:servlets', - '//lib/prolog:compiler_lib', - # TODO(davido): I do not understand why it must be on the Eclipse classpath - #'//Documentation:index', + "//gerrit-acceptance-tests:lib", + "//gerrit-gwtdebug:gwtdebug", + "//gerrit-gwtui:ui_module", + "//gerrit-main:main_lib", + "//gerrit-plugin-gwtui:gwtui-api-lib", + "//gerrit-server:server", + "//lib/asciidoctor:asciidoc_lib", + "//lib/asciidoctor:doc_indexer_lib", + "//lib/auto:auto-value", + "//lib/gwt:ant", + "//lib/gwt:colt", + "//lib/gwt:javax-validation", + "//lib/gwt:javax-validation_src", + "//lib/gwt:jsinterop-annotations", + "//lib/gwt:jsinterop-annotations_src", + "//lib/gwt:tapestry", + "//lib/gwt:w3c-css-sac", + "//lib/jetty:servlets", + "//lib/prolog:compiler_lib", + # TODO(davido): I do not understand why it must be on the Eclipse classpath + #'//Documentation:index', ] java_library( - name = 'classpath', - runtime_deps = LIBS + PGMLIBS + DEPS, - testonly = 1, + name = "classpath", + testonly = 1, + runtime_deps = LIBS + PGMLIBS + DEPS, ) classpath_collector( - name = 'main_classpath_collect', - deps = LIBS + PGMLIBS + DEPS + TEST_DEPS + PROVIDED_DEPS + - ['//plugins/%s:%s__plugin' % (n, n) - for n in CORE_PLUGINS + CUSTOM_PLUGINS], - testonly = 1, + name = "main_classpath_collect", + testonly = 1, + deps = LIBS + PGMLIBS + DEPS + TEST_DEPS + PROVIDED_DEPS + + ["//plugins/%s:%s__plugin" % (n, n) for n in CORE_PLUGINS + CUSTOM_PLUGINS], ) classpath_collector( - name = "gwt_classpath_collect", - deps = ["//gerrit-gwtui:ui_module"], + name = "gwt_classpath_collect", + deps = ["//gerrit-gwtui:ui_module"], ) classpath_collector( - name = "autovalue_classpath_collect", - deps = ["//lib/auto:auto-value"], + name = "autovalue_classpath_collect", + deps = ["//lib/auto:auto-value"], ) diff --git a/tools/maven/BUILD b/tools/maven/BUILD index 14eb2be63b..9ac46ac0f6 100644 --- a/tools/maven/BUILD +++ b/tools/maven/BUILD @@ -1,31 +1,32 @@ -load('//:version.bzl', 'GERRIT_VERSION') -load('//tools/maven:package.bzl', 'maven_package') +load("//:version.bzl", "GERRIT_VERSION") +load("//tools/maven:package.bzl", "maven_package") + +MAVEN_REPOSITORY = "sonatype-nexus-staging" -MAVEN_REPOSITORY = 'sonatype-nexus-staging' # TODO(davido): support snapshot repositories -MAVEN_RELEASE_URL = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' +MAVEN_RELEASE_URL = "https://oss.sonatype.org/service/local/staging/deploy/maven2" maven_package( - repository = MAVEN_REPOSITORY, - url = MAVEN_RELEASE_URL, - version = GERRIT_VERSION, - jar = { - 'gerrit-acceptance-framework': '//gerrit-acceptance-framework:acceptance-framework_deploy.jar', - 'gerrit-extension-api': '//gerrit-extension-api:extension-api_deploy.jar', - 'gerrit-plugin-api': '//gerrit-plugin-api:plugin-api_deploy.jar', - 'gerrit-plugin-gwtui': '//gerrit-plugin-gwtui:gwtui-api_deploy.jar', - }, - src = { - 'gerrit-acceptance-framework': '//gerrit-acceptance-framework:liblib-src.jar', - 'gerrit-extension-api': '//gerrit-extension-api:libapi-src.jar', - 'gerrit-plugin-api': '//gerrit-plugin-api:plugin-api-sources_deploy.jar', - 'gerrit-plugin-gwtui': '//gerrit-plugin-gwtui:gwtui-api-source_deploy.jar', - }, - 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'}, + src = { + "gerrit-acceptance-framework": "//gerrit-acceptance-framework:liblib-src.jar", + "gerrit-extension-api": "//gerrit-extension-api:libapi-src.jar", + "gerrit-plugin-api": "//gerrit-plugin-api:plugin-api-sources_deploy.jar", + "gerrit-plugin-gwtui": "//gerrit-plugin-gwtui:gwtui-api-source_deploy.jar", + }, + 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", + }, + jar = { + "gerrit-acceptance-framework": "//gerrit-acceptance-framework:acceptance-framework_deploy.jar", + "gerrit-extension-api": "//gerrit-extension-api:extension-api_deploy.jar", + "gerrit-plugin-api": "//gerrit-plugin-api:plugin-api_deploy.jar", + "gerrit-plugin-gwtui": "//gerrit-plugin-gwtui:gwtui-api_deploy.jar", + }, + repository = MAVEN_REPOSITORY, + url = MAVEN_RELEASE_URL, + version = GERRIT_VERSION, + war = {"gerrit-war": "//:release"}, ) diff --git a/version.bzl b/version.bzl index 3035c930ae..24a3c27b53 100644 --- a/version.bzl +++ b/version.bzl @@ -2,4 +2,4 @@ # Used by :api_install and :api_deploy targets # when talking to the destination repository. # -GERRIT_VERSION = '2.14-SNAPSHOT' +GERRIT_VERSION = "2.14-SNAPSHOT"