Buck: Add support for non transitive plugin dependencies
Buck: Add support for non transitive plugin dependencies

In some cases it might be useful to be able to pass dependencies as non
transitive dependencies, that not included in final plugin binary.

Why? When plugin dependencies are needed in both bootstrap classpath and
in plugin then they must be put in $gerrit_path/lib dir. Having them in lib
and inside the plugin doesn't make much sense.

This change exposes compile_deps parameter to the gerrit_{plugin|extension}
methods. It is possible to create both versions of the plugin: with and without
dependencies.

  gerrit_plugin(
    name = 'javamelody',
    srcs = glob(['src/main/java/**/*.java']),
    resources = glob(['src/main/resources/**/*']),
    manifest_entries = [
      'Gerrit-PluginName: javamelody',
      'Gerrit-Module: com.googlesource.gerrit.plugins.javamelody.Module',
      'Gerrit-HttpModule: com.googlesource.gerrit.plugins.javamelody.HttpModule',
    ],
    deps = [
      '//plugins/javamelody/lib:javamelody',
      '//plugins/javamelody/lib:jrobin',
    ],
  )

  gerrit_plugin(
    name = 'javamelody-no-deps',
    srcs = glob(['src/main/java/**/*.java']),
    resources = glob(['src/main/resources/**/*']),
    manifest_entries = [
      'Gerrit-PluginName: javamelody',
      'Gerrit-Module: com.googlesource.gerrit.plugins.javamelody.Module',
      'Gerrit-HttpModule: com.googlesource.gerrit.plugins.javamelody.HttpModule',
    ],
    compile_deps = [
      '//plugins/javamelody/lib:javamelody',
      '//plugins/javamelody/lib:jrobin',
    ],
  )

Change-Id: Ia274dbeb18de8807f0ab1edf7144f12ff0d02d74

pkdevbox/gerrit,Distrotech/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,anminhsu/gerrit,dwhipstock/gerrit,MerritCR/merrit,gerrit-review/gerrit,Seinlin/gerrit,gcoders/gerrit,midnightradio/gerrit,Team-OctOS/host_gerrit,Distrotech/gerrit,Distrotech/gerrit,renchaorevee/gerrit,thesamet/gerrit,anminhsu/gerrit,netroby/gerrit,joshuawilson/merrit,MerritCR/merrit,quyixia/gerrit,gerrit-review/gerrit,dwhipstock/gerrit,anminhsu/gerrit,gcoders/gerrit,quyixia/gerrit,gcoders/gerrit,Team-OctOS/host_gerrit,hdost/gerrit,Saulis/gerrit,Overruler/gerrit,quyixia/gerrit,supriyantomaftuh/gerrit,Overruler/gerrit,Team-OctOS/host_gerrit,netroby/gerrit,dwhipstock/gerrit,thinkernel/gerrit,supriyantomaftuh/gerrit,thesamet/gerrit,midnightradio/gerrit,supriyantomaftuh/gerrit,Seinlin/gerrit,anminhsu/gerrit,TonyChai24/test,GerritCodeReview/gerrit,WANdisco/gerrit,Overruler/gerrit,Team-OctOS/host_gerrit,WANdisco/gerrit,GerritCodeReview/gerrit,supriyantomaftuh/gerrit,Distrotech/gerrit,bootstraponline-archive/gerrit-mirror,joshuawilson/merrit,thinkernel/gerrit,thinkernel/gerrit,GerritCodeReview/gerrit,thinkernel/gerrit,netroby/gerrit,Distrotech/gerrit,TonyChai24/test,netroby/gerrit,quyixia/gerrit,gcoders/gerrit,TonyChai24/test,thesamet/gerrit,Seinlin/gerrit,pkdevbox/gerrit,GerritCodeReview/gerrit,jackminicloud/test,bpollack/gerrit,dwhipstock/gerrit,WANdisco/gerrit,hdost/gerrit,netroby/gerrit,renchaorevee/gerrit,supriyantomaftuh/gerrit,Team-OctOS/host_gerrit,WANdisco/gerrit,TonyChai24/test,supriyantomaftuh/gerrit,Team-OctOS/host_gerrit,bpollack/gerrit,quyixia/gerrit,pkdevbox/gerrit,bootstraponline-archive/gerrit-mirror,Seinlin/gerrit,qtproject/qtqa-gerrit,thinkernel/gerrit,thinkernel/gerrit,Saulis/gerrit,pkdevbox/gerrit,Saulis/gerrit,joshuawilson/merrit,jackminicloud/test,WANdisco/gerrit,jackminicloud/test,bpollack/gerrit,bootstraponline-archive/gerrit-mirror,dwhipstock/gerrit,qtproject/qtqa-gerrit,MerritCR/merrit,qtproject/qtqa-gerrit,renchaorevee/gerrit,jackminicloud/test,gerrit-review/gerrit,supriyantomaftuh/gerrit,qtproject/qtqa-gerrit,gcoders/gerrit,qtproject/qtqa-gerrit,thinkernel/gerrit,dwhipstock/gerrit,TonyChai24/test,gerrit-review/gerrit,Team-OctOS/host_gerrit,TonyChai24/test,midnightradio/gerrit,gcoders/gerrit,jackminicloud/test,netroby/gerrit,joshuawilson/merrit,joshuawilson/merrit,thesamet/gerrit,bootstraponline-archive/gerrit-mirror,Distrotech/gerrit,midnightradio/gerrit,qtproject/qtqa-gerrit,thesamet/gerrit,joshuawilson/merrit,WANdisco/gerrit,jackminicloud/test,hdost/gerrit,renchaorevee/gerrit,gerrit-review/gerrit,MerritCR/merrit,Saulis/gerrit,joshuawilson/merrit,Saulis/gerrit,GerritCodeReview/gerrit,pkdevbox/gerrit,qtproject/qtqa-gerrit,thesamet/gerrit,TonyChai24/test,Seinlin/gerrit,gcoders/gerrit,MerritCR/merrit,GerritCodeReview/gerrit,Overruler/gerrit,hdost/gerrit,Overruler/gerrit,dwhipstock/gerrit,MerritCR/merrit,bpollack/gerrit,anminhsu/gerrit,midnightradio/gerrit,renchaorevee/gerrit,bootstraponline-archive/gerrit-mirror,MerritCR/merrit,quyixia/gerrit,gerrit-review/gerrit,renchaorevee/gerrit,renchaorevee/gerrit,Saulis/gerrit,Seinlin/gerrit,Overruler/gerrit,Seinlin/gerrit,anminhsu/gerrit,pkdevbox/gerrit,joshuawilson/merrit,Distrotech/gerrit,bpollack/gerrit,anminhsu/gerrit,gerrit-review/gerrit,hdost/gerrit,WANdisco/gerrit,thesamet/gerrit,pkdevbox/gerrit,jackminicloud/test,hdost/gerrit,bootstraponline-archive/gerrit-mirror,quyixia/gerrit,midnightradio/gerrit,MerritCR/merrit,netroby/gerrit,hdost/gerrit,bpollack/gerrit