Cross cell support in Buck is considered as experimental feature, with number of open issues: [1], [2], [3]. Moreover, to make Maven Central machinery work, it was needed to create symbolic links in source tree. That broke `buck targets` feature. Remove it for now, and re-consider to add it later. [1] https://github.com/facebook/buck/issues/656 [2] https://github.com/facebook/buck/issues/658 [3] https://github.com/facebook/buck/issues/717 Bug: Issue 3954 Change-Id: Ic621a07771f926001df181b46b2169e214ce208a
		
			
				
	
	
		
			41 lines
		
	
	
		
			865 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			865 B
		
	
	
	
		
			Python
		
	
	
	
	
	
java_library(
 | 
						|
  name = 'http',
 | 
						|
  srcs = glob(['src/main/java/**/*.java']),
 | 
						|
  provided_deps = ['//lib:servlet-api-3_1'],
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
TESTUTIL_SRCS = glob(['src/test/**/testutil/**/*.java'])
 | 
						|
 | 
						|
java_library(
 | 
						|
  name = 'testutil',
 | 
						|
  srcs = TESTUTIL_SRCS,
 | 
						|
  deps = [
 | 
						|
    '//gerrit-extension-api:api',
 | 
						|
    '//lib:guava',
 | 
						|
    '//lib:servlet-api-3_1',
 | 
						|
    '//lib/httpcomponents:httpclient',
 | 
						|
    '//lib/jgit/org.eclipse.jgit:jgit',
 | 
						|
  ],
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
java_test(
 | 
						|
  name = 'http_tests',
 | 
						|
  srcs = glob(
 | 
						|
    ['src/test/java/**/*.java'],
 | 
						|
    excludes = TESTUTIL_SRCS,
 | 
						|
  ),
 | 
						|
  deps = [
 | 
						|
    ':http',
 | 
						|
    ':testutil',
 | 
						|
    '//lib:junit',
 | 
						|
    '//lib:servlet-api-3_1',
 | 
						|
    '//lib:truth',
 | 
						|
    '//lib/easymock:easymock',
 | 
						|
  ],
 | 
						|
  source_under_test = [':http'],
 | 
						|
  # TODO(sop) Remove after Buck supports Eclipse
 | 
						|
  visibility = ['//tools/eclipse:classpath'],
 | 
						|
)
 |