e47be68709
These classes do not depend on any Gerrit server functionality, and could even be used to define an index without depending on the gerrit-server package. This allows for a clearer separation of BUILD rules; the QueryParser and antlr targets don't escape the gerrit-index package. The general layout thus far is to put index definition code in com.google.gerrit.index, and query-related code (predicates, etc.) in com.google.gerrit.index.query. The gerrit-index package is still of limited utility on its own, because QueryProcessor and InternalQuery still live in the server package, and untangling their dependencies will still be a bit more work. Change-Id: I3c4616d08ecf19d5ccd1b9b91b3fd0b1fcedd901
115 lines
3.0 KiB
Python
115 lines
3.0 KiB
Python
SRCS = [
|
|
"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",
|
|
]
|
|
|
|
EXPORTS = [
|
|
"//gerrit-index:index",
|
|
"//gerrit-index:query_exception",
|
|
"//gerrit-index:query_parser",
|
|
"//gerrit-common:annotations",
|
|
"//gerrit-common:server",
|
|
"//gerrit-extension-api:api",
|
|
"//gerrit-gwtexpui:server",
|
|
"//gerrit-reviewdb:server",
|
|
"//gerrit-server:prolog-common",
|
|
"//lib/commons:dbcp",
|
|
"//lib/commons:lang",
|
|
"//lib/commons:lang3",
|
|
"//lib/dropwizard:dropwizard-core",
|
|
"//lib/guice:guice",
|
|
"//lib/guice:guice-assistedinject",
|
|
"//lib/guice:guice-servlet",
|
|
"//lib/guice:javax-inject",
|
|
"//lib/guice:multibindings",
|
|
"//lib/httpcomponents:httpclient",
|
|
"//lib/httpcomponents:httpcore",
|
|
"//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:guava-retrying",
|
|
"//lib:gson",
|
|
"//lib:gwtorm",
|
|
"//lib:icu4j",
|
|
"//lib:jsch",
|
|
"//lib:mime-util",
|
|
"//lib:protobuf",
|
|
"//lib:servlet-api-3_1-without-neverlink",
|
|
"//lib:soy",
|
|
"//lib:velocity",
|
|
]
|
|
|
|
java_binary(
|
|
name = "plugin-api",
|
|
main_class = "Dummy",
|
|
visibility = ["//visibility:public"],
|
|
runtime_deps = [":lib"],
|
|
)
|
|
|
|
java_library(
|
|
name = "lib",
|
|
visibility = ["//visibility:public"],
|
|
exports = PLUGIN_API + EXPORTS,
|
|
)
|
|
|
|
java_library(
|
|
name = "lib-neverlink",
|
|
neverlink = 1,
|
|
visibility = ["//visibility:public"],
|
|
exports = PLUGIN_API + EXPORTS,
|
|
)
|
|
|
|
java_binary(
|
|
name = "plugin-api-sources",
|
|
main_class = "Dummy",
|
|
visibility = ["//visibility:public"],
|
|
runtime_deps = [
|
|
"//gerrit-common:libannotations-src.jar",
|
|
"//gerrit-extension-api:libapi-src.jar",
|
|
"//gerrit-gwtexpui:libserver-src.jar",
|
|
"//gerrit-httpd:libhttpd-src.jar",
|
|
"//gerrit-index:libquery_exception-src.jar",
|
|
"//gerrit-index:libquery_parser-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")
|
|
|
|
java_doc(
|
|
name = "plugin-api-javadoc",
|
|
libs = PLUGIN_API + [
|
|
"//gerrit-index:query_exception",
|
|
"//gerrit-index: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"],
|
|
)
|