gerrit/gerrit-reviewdb/BUCK
Shawn Pearce bd69e3e3ec Add Documentation:js_licenses.txt for JavaScript
//Documentation:js_licenses.txt is an optional target to build
the closure of licenses that are compiled into the JavaScript
by the GWT compiler. This is a subset of what is inside of
licenses.txt, but this subset may be necessary in some cases.

Explicitly break some edges that would otherwise by found
in the build graph to avoid dragging in license information
that is not necessary in the partial report created by the
js_licenses.txt target.

Change-Id: Ibbebb3365faf8dccbcd02ad7ef82280255fc5245
2015-06-25 14:26:07 -07:00

38 lines
807 B
Python

SRC = 'src/main/java/com/google/gerrit/reviewdb/'
TESTS = 'src/test/java/com/google/gerrit/reviewdb/'
gwt_module(
name = 'client',
srcs = glob([SRC + 'client/**/*.java']),
gwt_xml = SRC + 'ReviewDB.gwt.xml',
deps = [
'//gerrit-extension-api:client',
'//lib:gwtorm_client',
'//lib:gwtorm_client_src'
],
visibility = ['PUBLIC'],
)
java_library(
name = 'server',
srcs = glob([SRC + '**/*.java']),
resources = glob(['src/main/resources/**/*']),
deps = [
'//gerrit-extension-api:api',
'//lib:gwtorm',
],
visibility = ['PUBLIC'],
)
java_test(
name = 'client_tests',
srcs = glob([TESTS + 'client/**/*.java']),
deps = [
':client',
'//lib:gwtorm',
'//lib:truth',
],
source_under_test = [':client'],
visibility = ['//tools/eclipse:classpath'],
)