930f29e2fd
In recent buildifier versions, lint errors can be fixed automatically: $ find . \( -name BUILD -o -name "*.bzl" \) -print \ | xargs buildifier --lint=fix This commit was created with Buildifier version 0.19.2: $ buildifier --version buildifier version: 0.19.2 buildifier scm revision: d39e4d5c25111527369142f16cdb49aa67707313 Change-Id: I1f06cd4596e794981ccc2d9fc2d1da9b17f3973a
80 lines
2.2 KiB
Python
80 lines
2.2 KiB
Python
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",
|
|
)
|