James Moger
2012-04-24 049a68bfee34d99be8a4d4d7124283862625641a
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.
6f46fa 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 and to automate the setup of developer environments.  
85c2e6 5
JM 6 ## Architecture
7
8 ![block diagram](architecture.png "Gitblit Architecture")
9
10 ### Bundled Dependencies
11 The following dependencies are bundled with Gitblit.
12
8c5d72 13 - [Bootstrap](http://twitter.github.com/bootstrap) (Apache 2.0)
3cc6e2 14 - [GLYPHICONS](http://glyphicons.com) (Creative Commons CC-BY)
3b6904 15 - [Clippy](https://github.com/mojombo/clippy) (MIT)
85c2e6 16 - [google-code-prettify](http://code.google.com/p/google-code-prettify) (Apache 2.0)
d39680 17 - [Commons Daemon](http://commons.apache.org/daemon) (Apache 2.0)
85c2e6 18 - magnifying glass search icon courtesy of [Gnome](http://gnome.org) (Creative Commons CC-BY)
JM 19 - modified Git logo originally designed by [Henrik Nyh](http://henrik.nyh.se/2007/06/alternative-git-logo-and-favicon)
20 - other icons courtesy of [FatCow Hosting](http://www.fatcow.com/free-icons) (Creative Commons CC-BY)
21
22 ### Downloaded Dependencies
23 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.
24
25 - [JGit][jgit] (EDL 1.0)
26 - [Wicket](http://wicket.apache.org) (Apache 2.0)
27 - [WicketStuff GoogleCharts](https://github.com/wicketstuff/core/wiki/GoogleCharts) (Apache 2.0)
28 - [MarkdownPapers](http://markdown.tautua.org) (Apache 2.0)
29 - [Jetty](http://eclipse.org/jetty) (Apache 2.0, EPL 1.0)
30 - [SLF4J](http://www.slf4j.org) (MIT/X11)
31 - [Log4j](http://logging.apache.org/log4j) (Apache 2.0) 
32 - [JCommander](http://jcommander.org) (Apache 2.0)
33 - [BouncyCastle](http://www.bouncycastle.org) (MIT/X11)
34 - [JSch - Java Secure Channel](http://www.jcraft.com/jsch) (BSD)
35 - [Rome](http://rome.dev.java.net) (Apache 1.1)
36 - [jdom](http://www.jdom.org) (Apache-style JDOM license)
831469 37 - [google-gson](http://code.google.com/google-gson) (Apache 2.0)
JM 38 - [javamail](http://kenai.com/projects/javamail) (CDDL-1.0, BSD, GPL-2.0, GNU-Classpath)
fa54be 39 - [Groovy](http://groovy.codehaus.org) (Apache 2.0)
ff3f0e 40 - [Lucene](http://lucene.apache.org) (Apache 2.0)
f3b625 41 - [UnboundID](http://www.unboundid.com) (LGPL 2.1)
85c2e6 42
JM 43 ### Other Build Dependencies
44 - [Fancybox image viewer](http://fancybox.net) (MIT and GPL dual-licensed)
45 - [JUnit](http://junit.org) (Common Public License)
46 - [commons-net](http://commons.apache.org/net) (Apache 2.0)
47 - [ant-googlecode](http://code.google.com/p/ant-googlecode) (New BSD)
f6740d 48 - [GenJar](http://genjar.sourceforge.net) (Apache 1.1)
85c2e6 49
JM 50 ## Building from Source
51 [Eclipse](http://eclipse.org) is recommended for development as the project settings are preconfigured.
52
53 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.
54
55 1. Clone the git repository from [Github][gitbltsrc].
3b5289 56 2. Import the gitblit project into your Eclipse workspace.  
85c2e6 57 *There will be lots of build errors.*
3b5289 58 3. Using Ant, execute the `build.xml` script in the project root.  
85c2e6 59 *This will download all necessary build dependencies and will also generate the Keys class for accessing settings.*
JM 60 4. Select your gitblit project root and **Refresh** the project, this should correct all build problems.
3b5289 61 5. Using JUnit, execute the `com.gitblit.tests.GitBlitSuite` test suite.  
85c2e6 62 *This will clone some repositories from the web and run through the unit tests.*
JM 63 5. Review the settings in `gitblit.properties` in your project root.
3b5289 64     - By default, the *git.repositoriesFolder* points to the repositories cloned by the test suite.  
85c2e6 65     - If running on Linux you may have to change the served port(s) to > 1024 unless you are developing as the root user. 
JM 66 6. Execute the *com.gitblit.Launcher* class to start Gitblit.
67
68
69 ## Contributing
70 Patches welcome in any form.
71
72 Contributions must be your own original work and must licensed under the [Apache License, Version 2.0][apachelicense], the same license used by Gitblit.
73
74 [jgit]: http://eclipse.org/jgit "Eclipse JGit Site"
75 [git]: http://git-scm.com "Official Git Site"
76 [gitbltsrc]: http://github.com/gitblit "gitblit git repository"
77 [googlecode]: http://code.google.com/p/gitblit "gitblit project management"
78 [apachelicense]: http://www.apache.org/licenses/LICENSE-2.0 "Apache License, Version 2.0"