You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

design.mkd 5.3KB

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