| include_defs('//lib/maven.defs') | |
| REPO = GERRIT # Leave here even if set to MAVEN_CENTRAL. | |
| VERS = '3.7.0.201502260915-r.63-gf1a15f7' | |
| maven_jar( | |
| name = 'jgit', | |
| id = 'org.eclipse.jgit:org.eclipse.jgit:' + VERS, | |
| bin_sha1 = 'f0690b06d4270cc823b03ca88fb996897edbc410', | |
| src_sha1 = 'c0b8232d4c5e8422198b35a90409c9826af68fa3', | |
| 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 = '1284d550981a037ffe92441faf5d16cdfc09396d', | |
| 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 = '6d96c9c27cb85c6db165b160fb0e8038b66b764a', | |
| 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 = '48e25624fda973f2e9b7fa70a5204ee7a72e1bb3', | |
| 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', | |
| ) |