
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
90 lines
1.9 KiB
Python
90 lines
1.9 KiB
Python
include_defs('//lib/maven.defs')
|
|
|
|
REPO = GERRIT # Leave here even if set to MAVEN_CENTRAL.
|
|
VERS = '4.0.0.201506090130-r.62-gd2fbbc9'
|
|
|
|
maven_jar(
|
|
name = 'jgit',
|
|
id = 'org.eclipse.jgit:org.eclipse.jgit:' + VERS,
|
|
bin_sha1 = '4d9b4a89e899f331f698f4d8cdc5d81e66d9aa50',
|
|
src_sha1 = '5a781b3aa509ee53ade902f7cd778cdeddd9a677',
|
|
license = 'jgit',
|
|
repository = REPO,
|
|
unsign = True,
|
|
deps = [':ewah'],
|
|
exclude = [
|
|
'META-INF/eclipse.inf',
|
|
'about.html',
|
|
'plugin.properties',
|
|
],
|
|
)
|
|
|
|
maven_jar(
|
|
name = 'jgit-servlet',
|
|
id = 'org.eclipse.jgit:org.eclipse.jgit.http.server:' + VERS,
|
|
sha1 = '2d1804f817305adea38d9572328be70c4427f4c7',
|
|
license = 'jgit',
|
|
repository = REPO,
|
|
deps = [':jgit'],
|
|
unsign = True,
|
|
exclude = [
|
|
'about.html',
|
|
'plugin.properties',
|
|
],
|
|
)
|
|
|
|
maven_jar(
|
|
name = 'jgit-archive',
|
|
id = 'org.eclipse.jgit:org.eclipse.jgit.archive:' + VERS,
|
|
sha1 = 'f7ca802228c590a66bd04ab1908d109a2679c269',
|
|
license = 'jgit',
|
|
repository = REPO,
|
|
deps = [':jgit',
|
|
'//lib/commons:compress',
|
|
'//lib:tukaani-xz',
|
|
],
|
|
unsign = True,
|
|
exclude = [
|
|
'about.html',
|
|
'plugin.properties',
|
|
],
|
|
)
|
|
|
|
maven_jar(
|
|
name = 'junit',
|
|
id = 'org.eclipse.jgit:org.eclipse.jgit.junit:' + VERS,
|
|
sha1 = 'f23a24b21f7a77c56a7bce0b5ffd3f584a2d73be',
|
|
license = 'DO_NOT_DISTRIBUTE',
|
|
repository = REPO,
|
|
unsign = True,
|
|
deps = [':jgit'],
|
|
)
|
|
|
|
maven_jar(
|
|
name = 'ewah',
|
|
id = 'com.googlecode.javaewah:JavaEWAH:0.7.9',
|
|
sha1 = 'eceaf316a8faf0e794296ebe158ae110c7d72a5a',
|
|
license = 'Apache2.0',
|
|
)
|
|
|
|
gwt_module(
|
|
name = 'Edit',
|
|
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.zip',
|
|
)
|