title: Gradle load properties from file and use it in liquibase task
body: <p>I am trying to load properties and use it in liquibase task. I am able to load the properties and able to print it out. But when I use it in liquibase task, gradle complains that properties are not found.</p>
  
  <p>I am using:</p>
  
  <pre><code>classpath 'org.liquibase:liquibase-gradle-plugin:1.1.0'
  </code></pre>
  
  <p>Loading properties:</p>
  
  <pre><code>def springApplicationProperties = "src/main/resources/application-${System.env.SPRING_PROFILES_ACTIVE}.properties"
  def springProps = new Properties()
  InputStream is = new FileInputStream("${springApplicationProperties}")
  springProps.load(is)
  println "${springProps['spring.datasource.url']}"
  </code></pre>
  
  <p>Liquibase block:</p>
  
  <pre><code>liquibase{
      activities {
          main {
                  changeLogFile 'src/main/database/changelog.groovy'
                  url ${springProps['spring.datasource.url']}
                  username ${springProps['spring.datasource.user']}
                  password ${springProps['spring.datasource.password']}
           }
      }
      runList = 'main'
  }
  </code></pre>
  
  <p>And I am getting</p>
  
  <blockquote>
    <p>No such property: $springProps for class:
    org.liquibase.gradle.Activity</p>
  </blockquote>
  
  <p>Looks like springProps is not visible in the liquibase activity. I tried to use ext and project scope, both not visible in liquibase block. </p>