Bazel: Reformat build files
Reformat the Bazel build files with the buildifier tool [1]. The style is different for Bazel files. Most notably, indentation level is 4 spaces instead of 2, and " is used instead of '. [1] https://github.com/bazelbuild/buildifier Change-Id: I95c0c6f11b6d76572797853b4ebb5cee5ebd3c98
This commit is contained in:
committed by
David Pursehouse
parent
8836c8bbfe
commit
fa18907d7f
@@ -1,40 +1,40 @@
|
||||
load('//tools/bzl:gwt.bzl', 'gwt_module')
|
||||
load("//tools/bzl:gwt.bzl", "gwt_module")
|
||||
|
||||
SRC = 'src/main/java/com/google/gerrit/prettify/'
|
||||
SRC = "src/main/java/com/google/gerrit/prettify/"
|
||||
|
||||
gwt_module(
|
||||
name = 'client',
|
||||
srcs = glob([
|
||||
SRC + 'common/**/*.java',
|
||||
]),
|
||||
gwt_xml = SRC + 'PrettyFormatter.gwt.xml',
|
||||
deps = ['//lib/gwt:user-neverlink'],
|
||||
exported_deps = [
|
||||
'//gerrit-extension-api:client',
|
||||
'//gerrit-gwtexpui:SafeHtml',
|
||||
'//gerrit-patch-jgit:client',
|
||||
'//gerrit-patch-jgit:Edit',
|
||||
'//gerrit-reviewdb:client',
|
||||
'//lib:gwtjsonrpc',
|
||||
'//lib:gwtjsonrpc_src',
|
||||
],
|
||||
visibility = ['//visibility:public'],
|
||||
name = "client",
|
||||
srcs = glob([
|
||||
SRC + "common/**/*.java",
|
||||
]),
|
||||
exported_deps = [
|
||||
"//gerrit-extension-api:client",
|
||||
"//gerrit-gwtexpui:SafeHtml",
|
||||
"//gerrit-patch-jgit:Edit",
|
||||
"//gerrit-patch-jgit:client",
|
||||
"//gerrit-reviewdb:client",
|
||||
"//lib:gwtjsonrpc",
|
||||
"//lib:gwtjsonrpc_src",
|
||||
],
|
||||
gwt_xml = SRC + "PrettyFormatter.gwt.xml",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["//lib/gwt:user-neverlink"],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = 'server',
|
||||
srcs = glob([SRC + 'common/**/*.java']),
|
||||
deps = [
|
||||
'//gerrit-patch-jgit:server',
|
||||
'//gerrit-reviewdb:server',
|
||||
'//lib:guava',
|
||||
'//lib:gwtjsonrpc',
|
||||
'//lib/jgit/org.eclipse.jgit:jgit',
|
||||
],
|
||||
visibility = ['//visibility:public'],
|
||||
name = "server",
|
||||
srcs = glob([SRC + "common/**/*.java"]),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//gerrit-patch-jgit:server",
|
||||
"//gerrit-reviewdb:server",
|
||||
"//lib:guava",
|
||||
"//lib:gwtjsonrpc",
|
||||
"//lib/jgit/org.eclipse.jgit:jgit",
|
||||
],
|
||||
)
|
||||
|
||||
exports_files([
|
||||
'src/main/resources/com/google/gerrit/prettify/client/prettify.css',
|
||||
'src/main/resources/com/google/gerrit/prettify/client/prettify.js',
|
||||
"src/main/resources/com/google/gerrit/prettify/client/prettify.css",
|
||||
"src/main/resources/com/google/gerrit/prettify/client/prettify.js",
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user