gerrit/gerrit-reviewdb/BUCK
David Pursehouse dc1547642c Declare guava and junit as exported deps of Google Truth
This means we don't have to explicitly include guava and junit as
dependencies of any tests that use Truth.  By default, Buck builds
java_library targets only with first order dependencies; transitive
dependencies are not considered.

Change-Id: Ibaa67de19c1ab7bb9c2d53f75fff94ca0f9779b5
2015-06-04 09:41:17 +09:00

38 lines
793 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',
'//lib:gwtorm_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'],
)