title: Spring boot build variants Profile-specific properties with gradle
body: <p>I have different configs <code>application-prod.properties</code> and <code>application-beta.properties</code> files
  I run it by: <code>-Dspring.profiles.active=beta</code> or <code>-Dspring.profiles.active=prod</code></p>
  
  <p>It works but also I use gradle:</p>
  
  <pre><code>war {
      baseName = 'beta'
      version = '0.0.1-SNAPSHOT'
  }
  </code></pre>
  
  <p>I want to use variable from application.properties and set to baseName. How to pass variable from application.properties to baseName in gradle file?</p>
  
  <p>on code level I do it like this:</p>
  
  <pre><code>@Value("${baseName}")
  private String baseName;
  </code></pre>