Shawn Pearce | fd6bb9f | 2013-05-08 14:14:24 -0700 | [diff] [blame] | 1 | include_defs('//lib/maven.defs') |
| 2 | |
David Pursehouse | 71a869f | 2013-10-23 14:16:21 +0900 | [diff] [blame] | 3 | REPO = ECLIPSE |
David Ostrovsky | af0e80b | 2014-01-05 20:10:17 +0100 | [diff] [blame] | 4 | VERS = '3.2.0.201312181205-r' |
Shawn Pearce | fd6bb9f | 2013-05-08 14:14:24 -0700 | [diff] [blame] | 5 | |
| 6 | maven_jar( |
| 7 | name = 'jgit', |
| 8 | id = 'org.eclipse.jgit:org.eclipse.jgit:' + VERS, |
David Ostrovsky | af0e80b | 2014-01-05 20:10:17 +0100 | [diff] [blame] | 9 | bin_sha1 = '4b99546e8c8a04597b7a4564003e3b554ec12b5c', |
| 10 | src_sha1 = '566b20b4798d9fa31fe33298c493ca9601830b6f', |
Shawn Pearce | fd6bb9f | 2013-05-08 14:14:24 -0700 | [diff] [blame] | 11 | license = 'jgit', |
| 12 | repository = REPO, |
David Ostrovsky | 6e0a3e5 | 2013-10-26 09:55:15 +0200 | [diff] [blame] | 13 | unsign = True, |
Shawn Pearce | fd6bb9f | 2013-05-08 14:14:24 -0700 | [diff] [blame] | 14 | deps = [':ewah'], |
| 15 | exclude = [ |
| 16 | 'META-INF/eclipse.inf', |
| 17 | 'about.html', |
| 18 | 'plugin.properties', |
| 19 | ], |
| 20 | ) |
| 21 | |
| 22 | maven_jar( |
| 23 | name = 'jgit-servlet', |
| 24 | id = 'org.eclipse.jgit:org.eclipse.jgit.http.server:' + VERS, |
David Ostrovsky | af0e80b | 2014-01-05 20:10:17 +0100 | [diff] [blame] | 25 | sha1 = '65c5c90fc3b65c76cb4ac593e93b5fef8bb43e08', |
Shawn Pearce | fd6bb9f | 2013-05-08 14:14:24 -0700 | [diff] [blame] | 26 | license = 'jgit', |
| 27 | repository = REPO, |
| 28 | deps = [':jgit'], |
David Ostrovsky | 0b579f8 | 2013-11-08 21:59:31 +0100 | [diff] [blame] | 29 | unsign = True, |
Shawn Pearce | fd6bb9f | 2013-05-08 14:14:24 -0700 | [diff] [blame] | 30 | exclude = [ |
| 31 | 'about.html', |
| 32 | 'plugin.properties', |
| 33 | ], |
| 34 | ) |
| 35 | |
| 36 | maven_jar( |
| 37 | name = 'junit', |
| 38 | id = 'org.eclipse.jgit:org.eclipse.jgit.junit:' + VERS, |
David Ostrovsky | af0e80b | 2014-01-05 20:10:17 +0100 | [diff] [blame] | 39 | sha1 = '10240657c6675cfa2b709c27ea89834aab200667', |
Shawn Pearce | fd6bb9f | 2013-05-08 14:14:24 -0700 | [diff] [blame] | 40 | license = 'DO_NOT_DISTRIBUTE', |
| 41 | repository = REPO, |
David Ostrovsky | 0b579f8 | 2013-11-08 21:59:31 +0100 | [diff] [blame] | 42 | unsign = True, |
Shawn Pearce | fd6bb9f | 2013-05-08 14:14:24 -0700 | [diff] [blame] | 43 | deps = [':jgit'], |
| 44 | ) |
| 45 | |
| 46 | maven_jar( |
| 47 | name = 'ewah', |
| 48 | id = 'com.googlecode.javaewah:JavaEWAH:0.5.6', |
| 49 | sha1 = '1207c0fc8552d4f5f574b50f29321d923521128e', |
| 50 | license = 'Apache2.0', |
| 51 | ) |
| 52 | |
| 53 | prebuilt_jar( |
| 54 | name = 'Edit', |
| 55 | binary_jar = genfile('edit-src.jar'), |
| 56 | deps = [':jgit_edit_src'], |
| 57 | visibility = ['PUBLIC'], |
| 58 | ) |
| 59 | |
| 60 | genrule( |
| 61 | name = 'jgit_edit_src', |
| 62 | cmd = 'unzip -qd $TMP $SRCS org/eclipse/jgit/diff/Edit.java;' + |
| 63 | 'cd $TMP;' + |
| 64 | 'zip -Dq $OUT org/eclipse/jgit/diff/Edit.java', |
| 65 | srcs = [genfile('jgit/org.eclipse.jgit-%s-src.jar' % VERS)], |
| 66 | out = 'edit-src.jar', |
| 67 | deps = [':jgit_src'] |
| 68 | ) |