witty-crayon-22786
03/18/2016, 4:35 PMwitty-crayon-22786
03/18/2016, 4:35 PMwitty-crayon-22786
03/18/2016, 4:35 PMjolly-chef-92794
03/18/2016, 4:36 PMwitty-crayon-22786
03/18/2016, 4:37 PMwitty-crayon-22786
03/18/2016, 4:37 PMwitty-crayon-22786
03/18/2016, 4:37 PMjolly-chef-92794
03/18/2016, 4:38 PMjava_library(name=‘lib’,
dependencies=[
‘provided-3rdparty-foobar’,
],
)
target(‘provided-3rdparty-foobar’,
scope=‘provided’,
dependencies=[
‘3rdparty:foobar’,
],
)
witty-crayon-22786
03/18/2016, 4:38 PMwitty-crayon-22786
03/18/2016, 4:40 PMjolly-chef-92794
03/18/2016, 4:40 PMmanaged_jar_libraries
to generate most of our 3rdparty jar_library
targets, including things like hadoop artifacts, we don’t (and cannot) edit the scopes of the jar_libraries in 3rdparty directlywitty-crayon-22786
03/18/2016, 4:40 PMjolly-chef-92794
03/18/2016, 4:41 PMtest
scope (which provided
encompasses in maven), so we need to add some jars as provided dependencies in library code, and direct dependencies in the test codejolly-chef-92794
03/18/2016, 4:41 PMjolly-chef-92794
03/18/2016, 4:42 PMtest
scope in pants, when you can just make your test code depend on what it needs towitty-crayon-22786
03/18/2016, 4:42 PMwitty-crayon-22786
03/18/2016, 4:43 PMjolly-chef-92794
03/18/2016, 4:43 PMwitty-crayon-22786
03/18/2016, 4:43 PMjolly-chef-92794
03/18/2016, 4:43 PMtarget()
indirectionswitty-crayon-22786
03/18/2016, 4:44 PMwitty-crayon-22786
03/18/2016, 4:45 PMwitty-crayon-22786
03/18/2016, 4:46 PMwitty-crayon-22786
03/18/2016, 4:46 PMwitty-crayon-22786
03/18/2016, 4:46 PMjolly-chef-92794
03/18/2016, 4:47 PMjolly-chef-92794
03/18/2016, 4:47 PMancient-stone-50795
03/18/2016, 4:51 PMancient-stone-50795
03/18/2016, 4:52 PMtarget()
type that can change the dependency behavior, but I proposed that up front at the Summit and folks didn't seem to like it much.witty-crayon-22786
03/18/2016, 4:53 PM