blob: 990689f667951aee44f1973e23055f33d72b06b3 [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_binary")
load("//tools/bzl:java.bzl", "java_library2")
load("//tools/bzl:javadoc.bzl", "java_doc")
package(default_visibility = ["//visibility:public"])
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",
],
)
java_library2(
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,
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",
],
)
java_doc(
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",
)