title: How do I load a .yml property in a Gradle build script?
body: <p>I have .yml file with the following properties:</p>
  <pre class="lang-yaml prettyprint-override"><code>spring:
    application:
      name: auth module
    profiles:
      active: prod
  </code></pre>
  <p>My gradle.build script has these settings for the <code>jar</code> task:</p>
  <pre><code>jar {
      baseName = 'auth-module-dev'  // `dev` should come from `spring.profiles.active`
      version =  '0.1.2'
  }
  </code></pre>
  <p>I want to build jar files with the naming convention <code>auth-module-%profile_name%.jar</code> where <code>%profile_name%</code> is the value of <code>spring.profiles.active</code>. How can I do this?</p>