commit | 4d8655d3f8ee79ca463ca4acc9dc2278b3852be8 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Thu Jul 23 14:55:35 2015 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Thu Jul 23 14:55:54 2015 +0100 |
tree | 85c672a3bdd5cf6b08a64fecd90e18b42db03b05 | |
parent | 1a575da2169cd308109f9a698b7a300cdf7bf9e6 [diff] | |
parent | ae28db4f1f38f8a916842976a48a9af594df04ba [diff] |
Merge branch 'stable-2.11' * stable-2.11: Assign Gravatar as default avatar generator Align with Gitblit 1.7.0-SNAPSHOT (latest development branch) Align Java source code level to Gerrit 1.7 Change-Id: If7b7ac947d9795ec60c8abcfb10039e17d85eee8
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}