| include_defs('//lib/maven.defs') |
| |
| REPO = GERRIT # Leave here even if set to MAVEN_CENTRAL. |
| VERS = '3.7.0.201502260915-r.33-g0f51246' |
| |
| maven_jar( |
| name = 'jgit', |
| id = 'org.eclipse.jgit:org.eclipse.jgit:' + VERS, |
| bin_sha1 = '892fb364b52b32a717e350179ff6f230a1ead3a8', |
| src_sha1 = 'd41d18963b2907fb9e43bba619a7beb5fd631c16', |
| 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 = '35e5a3885194cbcdb308d431b8f3e3d4c8942872', |
| 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 = 'c19445a08ed349b2b0df08cc92bd944b9e1494ce', |
| 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 = 'd4749f922109256b4f0cfcc004b5994c417abd9c', |
| 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', |
| ) |
| |
| prebuilt_jar( |
| name = 'Edit', |
| binary_jar = ':jgit_edit_src', |
| visibility = ['PUBLIC'], |
| ) |
| |
| 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', |
| ) |