blob: efbe199759a4d4ee8533254aa53c24d981cefc96 [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_library")
load("//tools/bzl:gwt.bzl", "gwt_module")
SRC = "src/main/java/com/google/gerrit/prettify/"
gwt_module(
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"]),
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",
])