Bazel: Add build for gerrit-plugin-gwtui
Change-Id: I1daa6f04e5693512177a280dfec74fb51d3ea71d
This commit is contained in:
parent
1e15271ad3
commit
1bbf7fbf54
55
gerrit-plugin-gwtui/BUILD
Normal file
55
gerrit-plugin-gwtui/BUILD
Normal file
@ -0,0 +1,55 @@
|
||||
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']
|
||||
|
||||
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,
|
||||
resources = glob(['src/main/**/*']),
|
||||
exported_deps = ['//gerrit-gwtui-common:client-lib'],
|
||||
deps = DEPS + ['//lib/gwt:dev'], # we want this to be exported deps
|
||||
)
|
||||
|
||||
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',
|
||||
title = 'Gerrit Review GWT Extension API Documentation',
|
||||
pkgs = [
|
||||
'com.google.gerrit.plugin',
|
||||
'com.google.gwtexpui.clippy',
|
||||
'com.google.gwtexpui.globalkey',
|
||||
'com.google.gwtexpui.safehtml',
|
||||
'com.google.gwtexpui.user',
|
||||
],
|
||||
libs = DEPS + [
|
||||
':gwtui-api-lib',
|
||||
'//lib:gwtjsonrpc',
|
||||
'//lib:gwtorm_client',
|
||||
'//lib/gwt:dev',
|
||||
'//gerrit-gwtui-common:client-lib',
|
||||
'//gerrit-common:client',
|
||||
'//gerrit-reviewdb:client',
|
||||
],
|
||||
)
|
Loading…
Reference in New Issue
Block a user