Bazel: Replace deprecated ctx.new_file() with ctx.actions.declare_file()
Bazel: Replace deprecated ctx.new_file() with ctx.actions.declare_file()

Buildifier 0.20.0 reports that ctx.new_file() method is deprecated.
Replace it as suggested with ctx.actions.declare_file() method: [1].

[1] https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md

Change-Id: Ie8fc6ca0c170a3ffa1936288e10255320b1cb18f

WANdisco/gerrit,GerritCodeReview/gerrit,WANdisco/gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit,WANdisco/gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit,qtproject/qtqa-gerrit,WANdisco/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit,WANdisco/gerrit,qtproject/qtqa-gerrit,qtproject/qtqa-gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit,GerritCodeReview/gerrit,WANdisco/gerrit,WANdisco/gerrit