silly-article-89931
07/20/2015, 6:30 PMrough-minister-58256
07/20/2015, 7:00 PMmammoth-autumn-2551
07/20/2015, 7:57 PMwitty-crayon-22786
07/20/2015, 8:11 PMwitty-crayon-22786
07/20/2015, 8:12 PMsilly-article-89931
07/20/2015, 8:12 PMmammoth-autumn-2551
07/20/2015, 8:13 PMancient-stone-50795
07/20/2015, 8:21 PMjolly-chef-92794
07/20/2015, 8:22 PMwitty-crayon-22786
07/20/2015, 8:23 PMwitty-crayon-22786
07/20/2015, 8:23 PMwitty-crayon-22786
07/20/2015, 8:24 PMtarget
and compile args
must always match (iirc)... so allowing them to be set independently is probably redundantwitty-crayon-22786
07/20/2015, 8:24 PMwitty-crayon-22786
07/20/2015, 8:25 PMjolly-chef-92794
07/20/2015, 8:30 PMcompile_settings(name, source_level, target_level, compile_args)
which looks like a target, and gets registered in a global dictionary. I stuck these in our top-level BUILD file after our source roots, and referred to them in targets like:
java_library(name='foobar',
target_level=compile_settings('1.8').target_level,
source_level=compile_settings('1.8').source_level,
compile_args=compile_settings('1.8').compile_args,
)
Which seems kind of ugly, though it gets around the worst of the copypasta.jolly-chef-92794
07/20/2015, 8:31 PMjava_compile_settings
target which just stores information, and then have jvm_targets optionally take in compile_settings=':foobar-settings'
, and resolve and extract data from that.bored-art-40741
07/20/2015, 8:33 PMbored-art-40741
07/20/2015, 8:33 PMjolly-chef-92794
07/20/2015, 8:33 PMbored-art-40741
07/20/2015, 8:33 PMjolly-chef-92794
07/20/2015, 8:33 PMbored-art-40741
07/20/2015, 8:33 PMbored-art-40741
07/20/2015, 8:34 PMwitty-crayon-22786
07/20/2015, 8:35 PMwitty-crayon-22786
07/20/2015, 8:35 PMwitty-crayon-22786
07/20/2015, 8:35 PMwitty-crayon-22786
07/20/2015, 8:36 PMancient-stone-50795
07/20/2015, 8:36 PMancient-stone-50795
07/20/2015, 8:38 PMwitty-crayon-22786
07/20/2015, 8:39 PM