gerrit/gerrit-httpd/BUCK
Shawn Pearce 57defbb9e5 Remove jsr305 library
In d6ccccf96a Sasa Zivkov explained OSGI runtimes do not accept the
javax.annotation.* package to be provided by the application, as part
of the package is already included with the JRE.

Now that Gerrit has its own version of the @Nullable annotation, drop
the jsr305 library dependency.

Change-Id: I253fd74af7a73c5d5bc4a0b35755cc449957e0f2
2013-09-26 23:12:55 -07:00

67 lines
1.5 KiB
Python

SRCS = glob(['src/main/java/**/*.java'])
RESOURCES = glob(['src/main/resources/**/*'])
java_library2(
name = 'httpd',
srcs = SRCS,
resources = RESOURCES,
deps = [
'//gerrit-antlr:query_exception',
'//gerrit-common:server',
'//gerrit-extension-api:api',
'//gerrit-gwtexpui:linker_server',
'//gerrit-gwtexpui:server',
'//gerrit-patch-jgit:server',
'//gerrit-prettify:server',
'//gerrit-reviewdb:server',
'//gerrit-server:server',
'//gerrit-util-cli:cli',
'//lib:args4j',
'//lib:gson',
'//lib:guava',
'//lib:gwtjsonrpc',
'//lib:gwtorm',
'//lib:jsch',
'//lib:mime-util',
'//lib/commons:codec',
'//lib/guice:guice',
'//lib/guice:guice-assistedinject',
'//lib/guice:guice-servlet',
'//lib/jgit:jgit',
'//lib/jgit:jgit-servlet',
'//lib/log:api',
],
compile_deps = ['//lib:servlet-api-3_0'],
visibility = ['PUBLIC'],
)
java_sources(
name = 'httpd-src',
srcs = SRCS + RESOURCES,
visibility = ['PUBLIC'],
)
java_test(
name = 'httpd_tests',
srcs = glob(['src/test/java/**/*.java']),
deps = [
':httpd',
'//gerrit-common:server',
'//gerrit-extension-api:api',
'//gerrit-reviewdb:server',
'//gerrit-server:server',
'//lib:easymock',
'//lib:junit',
'//lib:gson',
'//lib:gwtorm',
'//lib:guava',
'//lib:servlet-api-3_0',
'//lib/guice:guice',
'//lib/jgit:jgit',
'//lib/jgit:junit',
],
source_under_test = [':httpd'],
# TODO(sop) Remove after Buck supports Eclipse
visibility = ['//tools/eclipse:classpath'],
)