Add javadoc rules for plugin API: * gerrit-extension-api * gerrit-plugin-api * gerrit-acceptance-framework Note that GWT UI is not covered by Bazel build yet, so that we cannot offer gerrit-plugin-gwtui:plugin-gwtui-javadoc rule in this change. TEST PLAN: bazel build gerrit-acceptance-framework:acceptance-framework-javadoc bazel build gerrit-extension-api:extension-api-javadoc bazel build gerrit-plugin-api:plugin-api-javadoc Change-Id: I60832752010118e33eb6a06529032d86f169ee44
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
load('//tools/bzl:java.bzl', 'java_library2')
 | 
						|
 | 
						|
SRCS = glob(['src/test/java/com/google/gerrit/acceptance/*.java'])
 | 
						|
 | 
						|
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',
 | 
						|
]
 | 
						|
 | 
						|
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'],
 | 
						|
)
 | 
						|
 | 
						|
java_library2(
 | 
						|
  name = 'lib',
 | 
						|
  srcs = SRCS,
 | 
						|
  exported_deps = DEPS + [
 | 
						|
    '//lib:truth',
 | 
						|
  ],
 | 
						|
  deps = PROVIDED + [ # We want these deps to be exported_deps
 | 
						|
    '//lib:gwtorm',
 | 
						|
    '//lib/guice:guice',
 | 
						|
    '//lib/guice:guice-assistedinject',
 | 
						|
    '//lib/guice:guice-servlet',
 | 
						|
  ],
 | 
						|
  visibility = ['//visibility:public'],
 | 
						|
)
 | 
						|
 | 
						|
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'],
 | 
						|
)
 |