d7bd932488
Ifec05b2f marked gerrit-server:testutil as test only, but missed to mark as test only the targets that transitively depend on it. Change-Id: Ia43ce915b3f98ba8231d316899118b849f1c4ad9
74 lines
1.8 KiB
Python
74 lines
1.8 KiB
Python
load('//tools/bzl:java.bzl', 'java_library2')
|
|
|
|
SRCS = glob(['src/test/java/com/google/gerrit/acceptance/*.java'])
|
|
|
|
PROVIDED = [
|
|
'//gerrit-common:annotations',
|
|
'//gerrit-common:server',
|
|
'//gerrit-extension-api:api',
|
|
'//gerrit-httpd:httpd',
|
|
'//gerrit-lucene:lucene',
|
|
'//gerrit-pgm:init',
|
|
'//gerrit-reviewdb:server',
|
|
'//gerrit-server:server',
|
|
'//lib:gson',
|
|
'//lib:jsch',
|
|
'//lib/jgit/org.eclipse.jgit:jgit',
|
|
'//lib/mina:sshd',
|
|
'//lib:servlet-api-3_1',
|
|
]
|
|
|
|
java_binary(
|
|
name = 'acceptance-framework',
|
|
main_class = 'Dummy',
|
|
runtime_deps = [':lib'],
|
|
visibility = ['//visibility:public'],
|
|
testonly = 1,
|
|
)
|
|
|
|
java_library2(
|
|
name = 'lib',
|
|
srcs = SRCS,
|
|
exported_deps = [
|
|
'//gerrit-antlr:query_exception',
|
|
'//gerrit-gpg:gpg',
|
|
'//gerrit-launcher:launcher',
|
|
'//gerrit-openid:openid',
|
|
'//gerrit-pgm:daemon',
|
|
'//gerrit-pgm:http-jetty',
|
|
'//gerrit-pgm:util-nodep',
|
|
'//gerrit-server/src/main/prolog:common',
|
|
'//gerrit-server:testutil',
|
|
'//lib/auto:auto-value',
|
|
'//lib/httpcomponents:fluent-hc',
|
|
'//lib/httpcomponents:httpclient',
|
|
'//lib/httpcomponents:httpcore',
|
|
'//lib/jetty:servlet',
|
|
'//lib/jgit/org.eclipse.jgit.junit:junit',
|
|
'//lib/log:impl_log4j',
|
|
'//lib/log:log4j',
|
|
'//lib:truth',
|
|
],
|
|
deps = PROVIDED + [ # We want these deps to be exported_deps
|
|
'//lib/greenmail:greenmail',
|
|
'//lib:gwtorm',
|
|
'//lib/guice:guice',
|
|
'//lib/guice:guice-assistedinject',
|
|
'//lib/guice:guice-servlet',
|
|
'//lib/mail:mail',
|
|
],
|
|
visibility = ['//visibility:public'],
|
|
testonly = 1,
|
|
)
|
|
|
|
load('//tools/bzl:javadoc.bzl', 'java_doc')
|
|
|
|
java_doc(
|
|
name = 'acceptance-framework-javadoc',
|
|
title = 'Gerrit Acceptance Test Framework Documentation',
|
|
libs = [':lib'],
|
|
pkgs = ['com.google.gerrit.acceptance'],
|
|
visibility = ['//visibility:public'],
|
|
testonly = 1,
|
|
)
|