Get rid of hacked Wicket version

Let's use standard distributions instead.

From looking at the Wicket code and the original hack at
https://github.com/gerritcodereview/wicket/commit/4a3f2c1dccf064008f223bb554c90e12c1c3b55d
it appears to me that this hack may not have been necessary in the first
place and just overriding getClassLoader() in the GerritWicketFilter
might be good enough.

Adjust both Maven and Buck driven builds.

Change-Id: I7e8a6e5a0a0decefac8e971a627111a9e827dfe7
4 files changed
tree: 6ba4d28ff41f538411056620d141a140ec2b8708
  1. lib/
  2. src/
  3. .gitignore
  4. BUCK
  5. LICENSE
  6. pom.xml
  7. README.md
  8. ReleaseNotes-2.9.txt
README.md

GitBlit plugin

Overview

Purpose of this plugin is to use Gitblit as web-based viewer (i.e. GitWeb replacement) on top of Gerrit Code Review.

How to build

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.

Wicket

You need to clone and build a modified version of Wicket that is currently published on GitHub under the GerritCodeReview organisation: https://github.com/GerritCodeReview/wicket.git

$ git clone https://github.com/GerritCodeReview/wicket.git
$ git checkout wicket-1.4.23-gerrit
$ mvn clean install -DskipTests

Gitblit

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

Gitblit plugin

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

Configuration

In order to use GitBlit as GitWeb replacement, please apply the following configuration to your Gerrit config.

[gitweb]
    type = custom
    linkname = Gitblit
    url = plugins/
    revision = gitblit/commit/?r=${project}&h=${commit}
    project = gitblit/summary/?r=${project}
    branch = gitblit/log/?r=${project}&h=${branch}
    filehistory = gitblit/history/?f=${file}&r=${project}&h=${branch}
    file = gitblit/blob/?r=${project}&h=${commit}&f=${file}
    roottree = gitblit/tree/?r=${project}&h=${commit}