f98a60b35f
Recent Bazel versions support dash character in external repository names. Consistently use them with one exception: javax_inject. This is needed to match the name in the rules_closure. Change-Id: I1e75690fe1ee2ab32fffe07c0c30dbed84753960
81 lines
2.2 KiB
Python
81 lines
2.2 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
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",
|
|
],
|
|
)
|
|
|
|
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",
|
|
],
|
|
)
|
|
|
|
load("//tools/bzl:javadoc.bzl", "java_doc")
|
|
|
|
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",
|
|
)
|