commit | 0fcef6989c7f0a8e2bbb8a060ff001d41b1e521c | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Fri Sep 30 12:12:37 2016 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Fri Sep 30 12:12:37 2016 +0100 |
tree | 4fb1504ce9259121a68006f6acb3f6476ae5d2b9 | |
parent | 856dd72672c0c3dab03180e6afa53b0d1863e167 [diff] | |
parent | 8970c59e0e1ce00d4af845147d7f8fd3f964e476 [diff] |
Merge branch 'stable-2.11' into stable-2.12 Included changes: - Update gitblit to version 1.7.1 - Use a local build of GitBlit 1.7.1 for static res Change-Id: I22aaf7e2db295e8937a7ca9f76480334968d3158
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}