| include_defs('//bucklets/gerrit_plugin.bucklet') |
| include_defs('//bucklets/maven_jar.bucklet') |
| |
| JGIT_VERSION = '4.6.0.201612231935-r.30-gd3148f300' |
| REPO = GERRIT |
| |
| gerrit_plugin( |
| name = 'lfs', |
| srcs = glob(['src/main/java/**/*.java']), |
| resources = glob(['src/main/resources/**/*']), |
| deps = [ |
| ':jgit-http-apache', |
| ':jgit-lfs', |
| ':jgit-lfs-server', |
| ], |
| provided_deps = [ |
| '//lib/httpcomponents:httpcore', |
| ], |
| manifest_entries = [ |
| 'Gerrit-PluginName: lfs', |
| 'Gerrit-Module: com.googlesource.gerrit.plugins.lfs.Module', |
| 'Gerrit-HttpModule: com.googlesource.gerrit.plugins.lfs.HttpModule', |
| 'Gerrit-SshModule: com.googlesource.gerrit.plugins.lfs.SshModule', |
| ], |
| ) |
| |
| maven_jar( |
| name = 'jgit-http-apache', |
| id = 'org.eclipse.jgit:org.eclipse.jgit.http.apache:' + JGIT_VERSION, |
| sha1 = 'b9806f94d6b548c85a9ef96ef647b0f15b64927a', |
| license = 'jgit', |
| repository = REPO, |
| unsign = True, |
| exclude = [ |
| 'about.html', |
| 'plugin.properties', |
| ], |
| ) |
| |
| maven_jar( |
| name = 'jgit-lfs', |
| id = 'org.eclipse.jgit:org.eclipse.jgit.lfs:' + JGIT_VERSION, |
| bin_sha1 = '55cf48dd41732ded00d66f2f833e3b7346eb5e37', |
| src_sha1 = '6929394ff0b9e150ff22120d264c64decb0e6ee6', |
| license = 'jgit', |
| repository = REPO, |
| unsign = True, |
| exclude = [ |
| 'about.html', |
| 'plugin.properties', |
| ], |
| ) |
| |
| maven_jar( |
| name = 'jgit-lfs-server', |
| id = 'org.eclipse.jgit:org.eclipse.jgit.lfs.server:' + JGIT_VERSION, |
| bin_sha1 = '4d917afafe7888bba07607bfa7fcb06bb60fe7f1', |
| src_sha1 = '7673d7e1c53adb230360aa112e3b7dd14fb68a0a', |
| license = 'jgit', |
| repository = REPO, |
| unsign = True, |
| exclude = [ |
| 'about.html', |
| 'plugin.properties', |
| ], |
| ) |
| |
| java_test( |
| name = 'lfs_tests', |
| srcs = glob(['src/test/java/**/*.java']), |
| labels = ['lfs'], |
| deps = GERRIT_PLUGIN_API + GERRIT_TESTS + [ |
| ':lfs__plugin', |
| '//plugins/lfs:jgit-lfs', |
| ], |
| ) |