title: Running Flyway migrations with Jenkins and Gradle - Unable to resolve location classpath:db/migration
body: <p>When running flyway via jenkins I get the following error in the console output: </p>
  
  <pre><code>Unable to resolve location classpath:db/migration
  </code></pre>
  
  <p>My project source structure looks like this:</p>
  
  <pre><code>Project1
  |--WEB-INF
     |--src
        |--java source
     |--flywaysrc
        |-- flyway source
  </code></pre>
  
  <p>My build.gradle has separate sourceSets for flyway and java:</p>
  
  <pre><code>sourceSets {
      main {
          java {          
              srcDir 'WEB-INF/src'        
          }
      }
      flyway {
          java {
              srcDir 'WEB-INF/flywaysrc'
              output.classesDir='bin'         
          }
      }
  }
  </code></pre>
  
  <p>It also contains an entry for flyway, where locations array is set as follows:</p>
  
  <pre><code>flyway {  
      ...other configuration params...  
      ArrayList&lt;String&gt; locationsArray = new ArrayList&lt;String&gt;();  
      locationsArray.add("classpath:db/migration");  
      locationsArray.add("filesystem:/path/to/eclipse/Project1/WEB-INF/Release/old_release");
      locationsArray.add("filesystem:/path/to/eclipse/Project1/WEB-INF/flywaysrc");  
      locations=locationsArray  
      ...other configuration params...  
  }
  </code></pre>
  
  <p>Any idea what may be causing this/what information would you need to provide more input that could help resolve this?</p>