commit | 758f8a2831679b01a507475f5823e2cc5d06c5ff | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Tue Jun 09 02:09:55 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Jun 09 02:09:56 2015 +0000 |
tree | 97800932cf6969daa4ddaf8ff8bdaa33cb7845e7 | |
parent | cde89e6aa0523eb455c35a0943adc12b5d82d4f8 [diff] | |
parent | 8bf97592f9d4b56322e03a50b8060793a499cad2 [diff] |
Merge changes from topic 'fix-compiling' * changes: Add new authenticate method from gitblit Switch to using Path instead of File for sitePaths Update hash for expected gitblit snapshot jar
Purpose of this plugin is to use Gitblit as web-based viewer (i.e. GitWeb replacement) on top of Gerrit Code Review.
As pre-requisites you need to make a custom-build of Gitblit and Wicket: the standard JARs downloaded from a public Maven repository aren't enough as they are missing some specific build parameters and constraints (i.e. shaded-jar) that are needed for a Gerrit plugin to work properly.
You need to clone Gitblit from GitHub and build it locally using the installMaven ANT target.
$ git clone https://github.com/gitblit/gitblit.git $ git checkout develop $ ant -DresourceFolderPrefix=static installMaven
You are ready now to clone and build the Gitblit plugin: the Wicket and Giblit dependencies will be taken from your local Maven repository.
$ mvn package
In order to use GitBlit as GitWeb replacement, please apply the following configuration to your Gerrit config.
[gitweb] type = custom linkname = Gitblit url = plugins/gitblit/ revision = commit/?r=${project}&h=${commit} project = summary/?r=${project} branch = log/?r=${project}&h=${branch} filehistory = history/?f=${file}&r=${project}&h=${branch} file = blob/?r=${project}&h=${commit}&f=${file} roottree = tree/?r=${project}&h=${commit}