rundeck/rundeck — pull request #955 by onejli (2014-10-01 00:19:45+00:00)
Title: Gradle build can't find quartz in the classpath during a fresh/clean build

As mentioned [here](https://groups.google.com/forum/#!topic/rundeck-discuss/BoiP7zC4xTQ), the Gradle build can't find quartz in the classpath during a fresh/clean build.

0) Clean caches
`$ rm -fr ~/.m2 ~/.gradle ~/.grails`

1) Fresh clone
`$ git clone https://github.com/rundeck/rundeck.git`

2) First build fails with a cold cache
```
$ ./gradlew build

==========

| Compiling 46 source files.
| Error Fatal error during compilation java.lang.NoClassDefFoundError: org/quartz/listeners/JobListenerSupport (Use --stacktrace to see the full trace)
:rundeckapp:grailsWar FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rundeckapp:grailsWar'.
> Process 'command '/home/jli/tmp/rundeck/local/grails-2.2.4/bin/grails'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Total time: 3 mins 31.707 secs
```

3) Second build succeeds with a primed cache
```
$ ./gradlew build

==========

:rundeck-storage:rundeck-storage-filesys:build

BUILD SUCCESSFUL
Total time: 3 mins 41.674 secs
```