e1359a35e1
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
85 lines
2.7 KiB
Python
85 lines
2.7 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 + [
|
|
"//java/org/eclipse/jgit:libclient-src.jar",
|
|
"//java/org/eclipse/jgit:libEdit-src.jar",
|
|
"//java/com/google/gerrit/common:libclient-src.jar",
|
|
"//java/com/google/gerrit/extensions:libapi-src.jar",
|
|
"//java/com/google/gwtexpui/clippy:libclippy-src.jar",
|
|
"//java/com/google/gwtexpui/globalkey:libglobalkey-src.jar",
|
|
"//java/com/google/gwtexpui/progress:libprogress-src.jar",
|
|
"//java/com/google/gwtexpui/safehtml:libsafehtml-src.jar",
|
|
"//java/com/google/gwtexpui/user:libagent-src.jar",
|
|
"//gerrit-gwtui-common:libclient-src.jar",
|
|
"//java/com/google/gerrit/prettify:libclient-src.jar",
|
|
"//java/com/google/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-gwtui-common:libclient-lib-src.jar",
|
|
"//java/com/google/gwtexpui/clippy:libclippy-src.jar",
|
|
"//java/com/google/gwtexpui/globalkey:libglobalkey-src.jar",
|
|
"//java/com/google/gwtexpui/progress:libprogress-src.jar",
|
|
"//java/com/google/gwtexpui/safehtml:libsafehtml-src.jar",
|
|
"//java/com/google/gwtexpui/user:libagent-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",
|
|
"//java/com/google/gerrit/common:client",
|
|
"//java/com/google/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",
|
|
)
|