76e396b49b
gwt_xml is more pythonic naming convention. Beside that recent Buck version introduced new gwt_jar parameter in prebuilt_jar() rule and future Buck versions may introduce gwt_xml parameter to java_library() rule. Change-Id: Ia6447e62945ce3eb5ff951421ebf2f0fdf622b3d
48 lines
1009 B
Python
48 lines
1009 B
Python
SRC = 'src/main/java/com/google/gerrit/prettify/'
|
|
|
|
gwt_module(
|
|
name = 'client',
|
|
srcs = glob([
|
|
SRC + 'client/**/*.java',
|
|
SRC + 'common/**/*.java',
|
|
]),
|
|
gwt_xml = SRC + 'PrettyFormatter.gwt.xml',
|
|
resources = glob([
|
|
'src/main/java/com/google/gerrit/prettify/client/*.properties',
|
|
]),
|
|
deps = [
|
|
':google-code-prettify',
|
|
'//gerrit-patch-jgit:client',
|
|
'//gerrit-reviewdb:client',
|
|
'//gerrit-gwtexpui:SafeHtml',
|
|
'//lib:guava',
|
|
'//lib:gwtjsonrpc',
|
|
'//lib/gwt:user',
|
|
'//lib/jgit:jgit',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'google-code-prettify',
|
|
resources = glob([
|
|
'src/main/resources/com/google/gerrit/prettify/client/**/*',
|
|
]),
|
|
deps = [
|
|
'//lib:LICENSE-Apache2.0',
|
|
],
|
|
)
|
|
|
|
java_library(
|
|
name = 'server',
|
|
srcs = glob([SRC + 'common/**/*.java']),
|
|
deps = [
|
|
'//gerrit-patch-jgit:server',
|
|
'//gerrit-reviewdb:server',
|
|
'//lib:guava',
|
|
'//lib:gwtjsonrpc',
|
|
'//lib/jgit:jgit',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|