title: How to use multiple classes in multiple files in scripts?
body: <p>I need to make a standalone Groovy script that does not require compilation and runs without Groovy installed. It works well, but it fails to recognize any other script than the main script.   </p>
  
  <p>My folder structure is the following:   </p>
  
  <pre><code>libs\
      groovy-all-2.4.3.jar
      ivy-2.4.0.jar
  src\
      makeRelease.groovy
      ReleaseHelper.groovy
  </code></pre>
  
  <p>I am launching the script this way from the src folder: </p>
  
  <p><code>java -cp  "../libs/*" makeRelease.groovy</code></p>
  
  <p>makeRelease looks like this:   </p>
  
  <pre><code>public class makeRelease {
      public static void main(String... args) {
           new ReleaseHelper()
           ...
      }
  }
  </code></pre>
  
  <p>When run this is the output:</p>
  
  <pre><code>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  src\makeRelease.groovy: 5: unable to resolve class ReleaseHelper
  </code></pre>
  
  <p>How can I include other classes (that reside in separate files) in such portable scripts?</p>