Since [1] genrule() target doesn't accept deps parameters any more.
As replacement, cmd should use $(location :foo) macro. Reshuffle some
rules to fix existing genrule targets. Remove all rule, as it cannot
depend any more on api and release. Moreover create all.zip with both
api.zip and release.war included doesn't make really sense. Adjust the
documentation correspondingly.
gen_licences.py is accepting first order dependencies and computes the
classpath on its own. Make it work for now by passing the classpath for
the dependencies.  Add a TODO to clean this up and accept the classpath
from the Buck side, similar to what was done in Ifd2dcf69aa.
[1] d2c6edbf7b
Change-Id: Iab403cd964d09aff652662cd18b020db8e07a0d9
		
	
		
			
				
	
	
		
			73 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
EXPORTED_DEPS = [
 | 
						|
  '//gerrit-common:client',
 | 
						|
  '//gerrit-gwtexpui:Clippy',
 | 
						|
  '//gerrit-gwtexpui:GlobalKey',
 | 
						|
  '//gerrit-gwtexpui:Progress',
 | 
						|
  '//gerrit-gwtexpui:SafeHtml',
 | 
						|
  '//gerrit-gwtexpui:UserAgent',
 | 
						|
]
 | 
						|
DEPS = ['//lib/gwt:user']
 | 
						|
SRC = 'src/main/java/com/google/gerrit/'
 | 
						|
DIFFY = glob(['src/main/resources/com/google/gerrit/client/diffy*.png'])
 | 
						|
 | 
						|
gwt_module(
 | 
						|
  name = 'client',
 | 
						|
  srcs = glob([SRC + 'client/**/*.java']),
 | 
						|
  gwt_xml = SRC + 'GerritGwtUICommon.gwt.xml',
 | 
						|
  resources = glob(['src/main/**/*']),
 | 
						|
  exported_deps = EXPORTED_DEPS,
 | 
						|
  provided_deps = DEPS,
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
java_library(
 | 
						|
  name = 'client-lib',
 | 
						|
  srcs = glob(['src/main/**/*.java']),
 | 
						|
  resources = glob(['src/main/**/*']),
 | 
						|
  exported_deps = EXPORTED_DEPS,
 | 
						|
  provided_deps = DEPS,
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
java_library(
 | 
						|
  name = 'client-src-lib',
 | 
						|
  srcs = [],
 | 
						|
  resources = glob(['src/main/**/*']),
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
prebuilt_jar(
 | 
						|
  name = 'diffy_logo',
 | 
						|
  binary_jar = ':diffy_image_files_ln',
 | 
						|
  deps = [
 | 
						|
    '//lib:LICENSE-diffy',
 | 
						|
    '//lib:LICENSE-CC-BY3.0',
 | 
						|
  ],
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
genrule(
 | 
						|
  name = 'diffy_image_files_ln',
 | 
						|
  cmd = 'ln -s $(location :diffy_image_files) $OUT',
 | 
						|
  out = 'diffy_images.jar',
 | 
						|
)
 | 
						|
 | 
						|
java_library(
 | 
						|
  name = 'diffy_image_files',
 | 
						|
  resources = DIFFY,
 | 
						|
)
 | 
						|
 | 
						|
java_test(
 | 
						|
  name = 'client_tests',
 | 
						|
  srcs = glob(['src/test/java/**/*.java']),
 | 
						|
  deps = [
 | 
						|
    ':client',
 | 
						|
    '//lib:junit',
 | 
						|
    '//lib/gwt:user',
 | 
						|
    '//lib/jgit:jgit',
 | 
						|
  ],
 | 
						|
  source_under_test = [':client'],
 | 
						|
  vm_args = ['-Xmx512m'],
 | 
						|
  visibility = ['//tools/eclipse:classpath'],
 | 
						|
)
 |