Remove //lib/jgit:jgit from UI deps

This should only appear in the server deps.
For UI code build //lib/jgit:edit_lib which
has only the tiny slice of code used in the UI.

Change-Id: Ia46c0559a7180f80fda30efb8884ca236997c92d
This commit is contained in:
Shawn Pearce 2015-06-25 00:03:07 -07:00
parent c535dd6e23
commit b14bb76d5b
5 changed files with 12 additions and 7 deletions

View File

@ -32,7 +32,7 @@ gwt_module(
'//gerrit-reviewdb:client',
'//lib:gwtjsonrpc',
'//lib:gwtorm',
'//lib/jgit:jgit',
'//lib/jgit:Edit',
],
visibility = ['PUBLIC'],
)

View File

@ -44,7 +44,7 @@ gwt_module(
'//lib:gwtorm',
'//lib/codemirror:codemirror',
'//lib/gwt:user',
'//lib/jgit:jgit',
'//lib/jgit:Edit',
],
visibility = [
'//tools/eclipse:classpath',

View File

@ -10,7 +10,6 @@ gwt_module(
deps = [
'//lib:gwtjsonrpc',
'//lib/gwt:user',
'//lib/jgit:jgit',
'//lib/jgit:Edit',
],
visibility = ['PUBLIC'],

View File

@ -18,7 +18,7 @@ gwt_module(
'//lib:guava',
'//lib:gwtjsonrpc',
'//lib/gwt:user',
'//lib/jgit:jgit',
'//lib/jgit:Edit',
],
visibility = ['PUBLIC'],
)

View File

@ -67,17 +67,23 @@ maven_jar(
license = 'Apache2.0',
)
prebuilt_jar(
gwt_module(
name = 'Edit',
binary_jar = ':jgit_edit_src',
srcs = [':jgit_edit_src'],
deps = [':edit_src'],
visibility = ['PUBLIC'],
)
prebuilt_jar(
name = 'edit_src',
binary_jar = ':jgit_edit_src',
)
genrule(
name = 'jgit_edit_src',
cmd = 'unzip -qd $TMP $(location :jgit_src) ' +
'org/eclipse/jgit/diff/Edit.java;' +
'cd $TMP;' +
'zip -Dq $OUT org/eclipse/jgit/diff/Edit.java',
out = 'edit-src.jar',
out = 'edit.src.zip',
)