summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-06-18 16:09:44 -0400
committerJames Moger <james.moger@gitblit.com>2012-06-18 16:09:44 -0400
commit67d4f89b0cddb3de05c20e08c20f1bea714c2a9e (patch)
tree3575104ebd0e9c8601de6b0d402b15c41656a691 /docs
parentf216d6d4f0aa8d0fa1a23b4ed43174fe0458d143 (diff)
downloadgitblit-67d4f89b0cddb3de05c20e08c20f1bea714c2a9e.tar.gz
gitblit-67d4f89b0cddb3de05c20e08c20f1bea714c2a9e.zip
Added setting to control Groovy Grape folder (issue 91)
Diffstat (limited to 'docs')
-rw-r--r--docs/01_setup.mkd21
-rw-r--r--docs/04_releases.mkd2
2 files changed, 23 insertions, 0 deletions
diff --git a/docs/01_setup.mkd b/docs/01_setup.mkd
index c8cd09db..07f4b004 100644
--- a/docs/01_setup.mkd
+++ b/docs/01_setup.mkd
@@ -398,6 +398,27 @@ Some sample scripts are included in the GO and WAR distributions to show you how
Hook contributions and improvements are welcome.
+### Grapes
+
+*SINCE 1.0.0*
+
+[Grape](http://groovy.codehaus.org/Grape) lets you quickly add maven repository dependencies to your Groovy hook script.
+
+<blockquote>Grape (The Groovy Adaptable Packaging Engine or Groovy Advanced Packaging Engine) is the infrastructure enabling the grab() calls in Groovy, a set of classes leveraging [Ivy](http://ant.apache.org/ivy) to allow for a repository driven module system for Groovy. This allows a developer to write a script with an essentially arbitrary library requirement, and ship just the script. Grape will, at runtime, download as needed and link the named libraries and all dependencies forming a transitive closure when the script is run from existing repositories such as Ibiblio, Codehaus, and java.net.</blockquote>
+
+%BEGINCODE%
+// create and use a primitive array
+import org.apache.commons.collections.primitives.ArrayIntList
+
+@Grab(group='commons-primitives', module='commons-primitives', version='1.0')
+def createEmptyInts() { new ArrayIntList() }
+
+def ints = createEmptyInts()
+ints.add(0, 42)
+assert ints.size() == 1
+assert ints.get(0) == 42
+%ENDCODE%
+
### Custom Fields
*SINCE 1.0.0*
diff --git a/docs/04_releases.mkd b/docs/04_releases.mkd
index a47c0861..a281ffe5 100644
--- a/docs/04_releases.mkd
+++ b/docs/04_releases.mkd
@@ -35,6 +35,8 @@ Make sure to properly set *web.blobEncodings* before starting Gitblit if you are
**New:** *git.packedGitMmap = false*
- Added default access restriction. Applies to new repositories and repositories that have not been configured with Gitblit. (issue 88)
**New:** *git.defaultAccessRestriction = NONE*
+- Added setting to control Groovy Grape root folder. [Grape](http://groovy.codehaus.org/Grape) allows you to add Maven dependencies to your pre-/post-receive hook script classpath.
+ **New:** *groovy.grapeFolder = groovy/grape*
- Added LDAP User Service with many new *realm.ldap* keys (Github/jcrygier)
- Added support for custom repository properties for Groovy hooks (Github/jcrygier)
- Added script to facilitate proxy environment setup on Linux (Github/mragab)