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
This commit is contained in:

committed by
David Pursehouse

parent
8836c8bbfe
commit
fa18907d7f
54
BUILD
54
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,
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
248
gerrit-pgm/BUILD
248
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",
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
)
|
||||
|
@@ -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",
|
||||
])
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
106
gerrit-war/BUILD
106
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"],
|
||||
)
|
||||
|
375
lib/BUILD
375
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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -1,2 +1,3 @@
|
||||
load('//lib/codemirror:cm.bzl', 'pkg_cm')
|
||||
load("//lib/codemirror:cm.bzl", "pkg_cm")
|
||||
|
||||
pkg_cm()
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -1,4 +1,3 @@
|
||||
|
||||
exports_files([
|
||||
'highlight.min.js',
|
||||
"highlight.min.js",
|
||||
])
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
100
lib/jetty/BUILD
100
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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
17
lib/js/BUILD
17
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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
107
lib/lucene/BUILD
107
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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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",
|
||||
],
|
||||
)
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -1,6 +1,5 @@
|
||||
|
||||
exports_files([
|
||||
"license-map.py",
|
||||
"test_empty.sh",
|
||||
"test_license.sh",
|
||||
"license-map.py",
|
||||
"test_empty.sh",
|
||||
"test_license.sh",
|
||||
])
|
||||
|
@@ -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"],
|
||||
)
|
||||
|
@@ -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"},
|
||||
)
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user