title: Jenkins failing gradle test task, can't find import files
body: <p>I'm using Jenkins to run gradlew as a build step.  <code>build.gradle</code> has a test task in it.  When the test task runs, it fails because the Groovy file it's trying to compile has 5 <code>import</code> statements at the top.  These classes are ones I created in a sub-folder.  However, when I use the Job DSL plugin to create Jenkins Jobs using the same Groovy files, it runs just fine.  Following is the error I see:</p>
  
  <pre><code>09:32:31.930 [DEBUG] [TestEventLogger] debug.JobScriptsSpec &gt; test script JenkinsJobs.groovy FAILED
  09:32:31.930 [DEBUG] [TestEventLogger]     Expected no exception to be thrown, but got 'javaposse.jobdsl.dsl.DslException'
  09:32:31.930 [DEBUG] [TestEventLogger]         at spock.lang.Specification.noExceptionThrown(Specification.java:118)
  09:32:31.930 [DEBUG] [TestEventLogger]         at debug.JobScriptsSpec.test script #file.name(JobScriptsSpec.groovy:31)
  09:32:31.930 [DEBUG] [TestEventLogger] 
  09:32:31.930 [DEBUG] [TestEventLogger]         Caused by:
  09:32:31.930 [DEBUG] [TestEventLogger]         javaposse.jobdsl.dsl.DslException: startup failed:
  09:32:31.945 [DEBUG] [TestEventLogger]         script: 1: unable to resolve class utilities.GitConfiguration
  09:32:31.945 [DEBUG] [TestEventLogger]          @ line 1, column 1.
  09:32:31.945 [DEBUG] [TestEventLogger]            import utilities.GitConfiguration
  09:32:31.945 [DEBUG] [TestEventLogger]
  </code></pre>
  
  <p>I am emulating what is being done here: <a href="https://github.com/sheehan/job-dsl-gradle-example" rel="nofollow">https://github.com/sheehan/job-dsl-gradle-example</a> Take note of the "Testing" section.</p>
  
  <p>I have tried adding to the classpath doing the following but I still get the same error:</p>
  
  <pre><code>buildscript {
      dependencies {
          classpath files('/jobs/utilities')
      }
  }
  </code></pre>
  
  <p>My basic file structure is this:</p>
  
  <pre><code>jenkins-jobs
    |-build.gradle
    |-jobs
       |-JenkinsJobs.groovy
           |-utilities
               |-GitConfiguration.groovy
               |-other groovy files I try to import
  </code></pre>
  
  <p>In a nutshell, the question I'm trying to ask is how do I make Gradle happy while trying to include user created imports in my Groovy files?</p>