commit | 556b239864e0247bb68e6743ad6e8d06416eea4f | [log] [tgz] |
---|---|---|
author | Sebastian Schuberth <sschuberth@gmail.com> | Mon Jan 11 13:23:44 2016 +0100 |
committer | Sebastian Schuberth <sschuberth@gmail.com> | Mon Jan 11 14:40:52 2016 +0100 |
tree | b1e5fb013e0ce0b23d615afa7068aa0d52b3f525 | |
parent | 77c2d6f0b6d8c388fbb788825152c00010f374e9 [diff] |
Update gitblit to version 1.7.1 Change-Id: I478bf76d40567d44393d1955ca6d601ceafb42dc
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}