| include_defs('//lib/maven.defs') |
| |
| REPO = ECLIPSE |
| VERS = '3.1.0.201310021548-r' |
| |
| maven_jar( |
| name = 'jgit', |
| id = 'org.eclipse.jgit:org.eclipse.jgit:' + VERS, |
| bin_sha1 = 'df1410e5d1deaacfb70a2441b4766b61f2795bc3', |
| src_sha1 = 'b4e3d9c9c3da39b72acf72bd913ce9dbee88a9d4', |
| 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 = 'bcac91120afac59c195230537bde07175578fe79', |
| license = 'jgit', |
| repository = REPO, |
| deps = [':jgit'], |
| exclude = [ |
| 'about.html', |
| 'plugin.properties', |
| ], |
| ) |
| |
| maven_jar( |
| name = 'junit', |
| id = 'org.eclipse.jgit:org.eclipse.jgit.junit:' + VERS, |
| sha1 = 'a8b47bb41cec25b1d128f7d267badbc7dcf6d9aa', |
| license = 'DO_NOT_DISTRIBUTE', |
| repository = REPO, |
| deps = [':jgit'], |
| ) |
| |
| maven_jar( |
| name = 'ewah', |
| id = 'com.googlecode.javaewah:JavaEWAH:0.5.6', |
| sha1 = '1207c0fc8552d4f5f574b50f29321d923521128e', |
| license = 'Apache2.0', |
| ) |
| |
| prebuilt_jar( |
| name = 'Edit', |
| binary_jar = genfile('edit-src.jar'), |
| deps = [':jgit_edit_src'], |
| visibility = ['PUBLIC'], |
| ) |
| |
| genrule( |
| name = 'jgit_edit_src', |
| cmd = 'unzip -qd $TMP $SRCS org/eclipse/jgit/diff/Edit.java;' + |
| 'cd $TMP;' + |
| 'zip -Dq $OUT org/eclipse/jgit/diff/Edit.java', |
| srcs = [genfile('jgit/org.eclipse.jgit-%s-src.jar' % VERS)], |
| out = 'edit-src.jar', |
| deps = [':jgit_src'] |
| ) |