title: flyway gradle plugin with groovy environments
body: <p>I am trying to customize gradle to build to get flyway properties from groovy file </p>
  
  <p>my environment.groovy file</p>
  
  <pre><code>environments {
      dev {
          flywayProperties {
              driver="oracle.jdbc.driver.OracleDriver"
              url="jdbc:oracle:thin:@localhost:1521/XE"
              user="test"
              password="test"
              locations= "classpath:db/migration,db/insert"   
          }
      }
  
      qa {
          flywayProperties {
              driver = "oracle.jdbc.driver.OracleDriver"
              url = "jdbc:oracle:thin:@localhost:1521/XE"
              user = "test"
              password = "test"
              locations = "classpath:db/migration"
          }
      }
  }
  </code></pre>
  
  <p>and my build.gradle</p>
  
  <pre><code>loadConfiguration()
  
  task printProps &lt;&lt; {
      println "Driver:  $config.flywayProperties.driver"
      println "URL:  $config.flywayProperties.url"
      println "User:  $config.flywayProperties.user"
      println "Password:  $config.flywayProperties.password"
      println "Locations:  $config.flywayProperties.locations"
  }
  
  def loadConfiguration() {
      def environment = hasProperty('env') ? env : 'dev'
      project.ext.envrionment = environment
      println "Environment is set to $environment"
  
      def configFile = file('environment.groovy')
      println configFile.toURL()
  
      def config = new ConfigSlurper("$environment").parse(configFile.toURL())
      project.ext.config = config
  }
  
  flyway {
      driver = "$config.flywayProperties.driver"
      url = "${config.flywayProperties.url}"
      user = "${config.flywayProperties.user}"
      password = "${config.flywayProperties.password}"
      //locations = ['classpath:db/migration' , 'db/insert']   -- Works fine
      locations = "${config.flywayProperties.locations}" -- Throws below error
  }
  </code></pre>
  
  <p>I get below error when I try to execute 'gradle flywayInfo'</p>
  
  <blockquote>
    <p>**FAILURE: Build failed with an exception.
    * What went wrong: Execution failed for task ':flywayInfo'.</p>
    
    <blockquote>
      <p>Error occurred while executing flywayInfo Unknown prefix for location (should be either filesystem: or classpath:): :**</p>
    </blockquote>
  </blockquote>
  
  <p>Can someone help me how to provide locations. As i need to provide multiple locations based on the environments</p>
  
  <p>Thanks</p>