James Moger
2011-06-28 d39680e9f54322ddcb40b00503a8ee30aee6c99c
commit | author | age
85c2e6 1 ## Design Principles
JM 2 1. [Keep It Simple, Stupid](http://en.wikipedia.org/wiki/KISS_principle)
3 2. Offer useful features for serving Git repositories.  If feature is complex, refer to #1.
4 3. All dependencies must be retrievable from a publicly accessible [Maven](http://maven.apache.org) repository.<br/>This is to ensure authenticity of dependencies, to keep the Gitblit GO distribution svelte, and to automate the setup of developer environments.  
5
6 ## Architecture
7
8 ![block diagram](architecture.png "Gitblit Architecture")
9
10 ### Bundled Dependencies
11 The following dependencies are bundled with Gitblit.
12
13 - [google-code-prettify](http://code.google.com/p/google-code-prettify) (Apache 2.0)
d39680 14 - [Commons Daemon](http://commons.apache.org/daemon) (Apache 2.0)
85c2e6 15 - magnifying glass search icon courtesy of [Gnome](http://gnome.org) (Creative Commons CC-BY)
JM 16 - modified Git logo originally designed by [Henrik Nyh](http://henrik.nyh.se/2007/06/alternative-git-logo-and-favicon)
17 - other icons courtesy of [FatCow Hosting](http://www.fatcow.com/free-icons) (Creative Commons CC-BY)
18
19 ### Downloaded Dependencies
20 The following dependencies are automatically downloaded by Gitblit GO (or already bundled with the WAR) from the Apache Maven repository and from the Eclipse Maven repository when Gitblit is launched for the first time.
21
22 - [JGit][jgit] (EDL 1.0)
23 - [Wicket](http://wicket.apache.org) (Apache 2.0)
24 - [WicketStuff GoogleCharts](https://github.com/wicketstuff/core/wiki/GoogleCharts) (Apache 2.0)
25 - [MarkdownPapers](http://markdown.tautua.org) (Apache 2.0)
26 - [Jetty](http://eclipse.org/jetty) (Apache 2.0, EPL 1.0)
27 - [SLF4J](http://www.slf4j.org) (MIT/X11)
28 - [Log4j](http://logging.apache.org/log4j) (Apache 2.0) 
29 - [JCommander](http://jcommander.org) (Apache 2.0)
30 - [BouncyCastle](http://www.bouncycastle.org) (MIT/X11)
31 - [JSch - Java Secure Channel](http://www.jcraft.com/jsch) (BSD)
32 - [Rome](http://rome.dev.java.net) (Apache 1.1)
33 - [jdom](http://www.jdom.org) (Apache-style JDOM license)
34
35 ### Other Build Dependencies
36 - [Fancybox image viewer](http://fancybox.net) (MIT and GPL dual-licensed)
37 - [JUnit](http://junit.org) (Common Public License)
38 - [commons-net](http://commons.apache.org/net) (Apache 2.0)
39 - [ant-googlecode](http://code.google.com/p/ant-googlecode) (New BSD)
40
41 ## Building from Source
42 [Eclipse](http://eclipse.org) is recommended for development as the project settings are preconfigured.
43
44 Additionally, [Google CodePro AnalytiX](http://code.google.com/javadevtools), [eclipse-cs](http://eclipse-cs.sourceforge.net), [FindBugs](http://findbugs.sourceforge.net), and [EclEmma](http://www.eclemma.org) are recommended development tools.
45
46 1. Clone the git repository from [Github][gitbltsrc].
47 2. Import the gitblit project into your Eclipse workspace.<br/>
48 *There will be lots of build errors.*
49 3. Using Ant, execute the `build.xml` script in the project root.<br/>
50 *This will download all necessary build dependencies and will also generate the Keys class for accessing settings.*
51 4. Select your gitblit project root and **Refresh** the project, this should correct all build problems.
52 5. Using JUnit, execute the `com.gitblit.tests.GitBlitSuite` test suite.<br/>
53 *This will clone some repositories from the web and run through the unit tests.*
54 5. Review the settings in `gitblit.properties` in your project root.
55     - By default, the *git.repositoriesFolder* points to the repositories cloned by the test suite.<br/>
56     - If running on Linux you may have to change the served port(s) to > 1024 unless you are developing as the root user. 
57 6. Execute the *com.gitblit.Launcher* class to start Gitblit.
58
59
60 ## Contributing
61 Patches welcome in any form.
62
63 Contributions must be your own original work and must licensed under the [Apache License, Version 2.0][apachelicense], the same license used by Gitblit.
64
65 [jgit]: http://eclipse.org/jgit "Eclipse JGit Site"
66 [git]: http://git-scm.com "Official Git Site"
67 [gitbltsrc]: http://github.com/gitblit "gitblit git repository"
68 [googlecode]: http://code.google.com/p/gitblit "gitblit project management"
69 [apachelicense]: http://www.apache.org/licenses/LICENSE-2.0 "Apache License, Version 2.0"