gerrit/gerrit-prettify/BUCK
David Ostrovsky 08ea694499 Buck: Remove jgit cell
Cross cell support in Buck is considered as experimental feature, with
number of open issues: [1], [2], [3].  Moreover, to make Maven Central
machinery work, it was needed to create symbolic links in source tree.
That broke `buck targets` feature.

Remove it for now, and re-consider to add it later.

[1] https://github.com/facebook/buck/issues/656
[2] https://github.com/facebook/buck/issues/658
[3] https://github.com/facebook/buck/issues/717

Bug: Issue 3954
Change-Id: Ic621a07771f926001df181b46b2169e214ce208a
2016-04-20 22:02:49 +02:00

48 lines
1.1 KiB
Python

SRC = 'src/main/java/com/google/gerrit/prettify/'
gwt_module(
name = 'client',
srcs = glob([
SRC + 'common/**/*.java',
]),
gwt_xml = SRC + 'PrettyFormatter.gwt.xml',
deps = [
'//gerrit-gwtexpui:SafeHtml',
],
exported_deps = [
'//gerrit-extension-api:client',
'//gerrit-patch-jgit:client',
'//gerrit-patch-jgit:Edit',
'//gerrit-reviewdb:client',
'//lib:gwtjsonrpc',
'//lib:gwtjsonrpc_src',
],
provided_deps = ['//lib/gwt:user'],
visibility = ['PUBLIC'],
)
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 = ['PUBLIC'],
)
export_file(
name = 'prettify.min.js',
src = 'src/main/resources/com/google/gerrit/prettify/client/prettify.js',
visibility = ['//Documentation:'],
)
export_file(
name = 'prettify.min.css',
src = 'src/main/resources/com/google/gerrit/prettify/client/prettify.css',
visibility = ['//Documentation:'],
)