https://github.com/rantav/glu-scripts-contrib
This project contains glu scripts that have been contributed by the community
https://github.com/rantav/glu-scripts-contrib
Last synced: about 2 months ago
JSON representation
This project contains glu scripts that have been contributed by the community
- Host: GitHub
- URL: https://github.com/rantav/glu-scripts-contrib
- Owner: rantav
- License: apache-2.0
- Created: 2011-07-27T07:20:52.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-07-27T09:36:02.000Z (almost 14 years ago)
- Last Synced: 2025-03-30T08:07:50.637Z (2 months ago)
- Language: Groovy
- Homepage: http://linkedin.github.com/glu/docs/latest/html/index.html
- Size: 105 KB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Introduction
============
This project contains a set of glu scripts that have been contributed by the community. It also
serves as an example on how to write and test glu scripts. Checkout the
[glu project](https://www.github.com/linkedin/glu) for more details about glu.How to write and test a glu script
----------------------------------
First, you should check the documentation which gives some information about
[glu scripts](http://linkedin.github.com/glu/docs/latest/html/glu-script.html).Next, you should check the sample glu script checked in with this project which demonstrates
how to use some basic features as well as how to write a unit test for your glu script. The javadoc
is fairly extensive and should allow you to bootstrap pretty quickly.You may also want to check a real-life glu script for more details about advanced features by
checking the [jetty glu script](https://github.com/linkedin/glu/blob/master/scripts/org.linkedin.glu.script-jetty/src/main/groovy/JettyGluScript.groovy)
as well as its [unit test](https://github.com/linkedin/glu/blob/master/scripts/org.linkedin.glu.script-jetty/src/test/groovy/test/script/jetty/TestJettyGluScript.groovy).If you want to embed glu scripts in your own build lifecycle, the critical piece is the dependencies
section in the `scripts/build.gradle` file:dependencies {
compile spec.external.linkedinUtilsGroovy
compile spec.external.gluAgentAPI
groovy spec.external.groovytestCompile spec.external.gluScriptsTestFwk
testCompile spec.external.junit
}which looks like this expanded (`spec.external` refers to the map defined in `project-spect.groovy`):
dependencies {
compile "org.linkedin:org.linkedin.util-groovy:1.7.0"
compile "org.linkedin:org.linkedin.glu.agent-api:3.1.0"
groovy "org.codehaus.groovy:groovy:1.7.5"testCompile "org.linkedin:org.linkedin.glu.scripts-test-fwk:3.1.0"
testCompile "junit:junit:4.4"
}Build configuration
===================
The project uses the [`org.linkedin.userConfig`](https://github.com/linkedin/gradle-plugins/blob/master/README.md) plugin and as such can be configuredExample:
~/.userConfig.properties
top.build.dir="/Volumes/Disk2/deployment/${userConfig.project.name}"
top.install.dir="/export/content/${userConfig.project.name}"
top.release.dir="/export/content/repositories/release"
top.publish.dir="/export/content/repositories/publish"