title: Profile change is not working with gradle in jhipster 7
body: <p>Changing profiles doesn't work in an app generated with jhipster (v7.3 &amp; 7.4) and gradle. I followed <a href="https://www.jhipster.tech/profiles/" rel="nofollow noreferrer">this</a>. When I run from command-line <code>gradlew -Pprod</code>, the app always starts in dev profile:</p>
  <pre><code>No active profile set, falling back to default profiles: dev,api-docs
  </code></pre>
  <p>I think something broke in the generators as nobody is providing the <code>spring.profiles.active</code> property. I miss <code>it.replace('#spring.profiles.active#', profiles)}</code> in the <em>profile_prod.gradle</em> file that I saw in previous releases. I added it, now <em>application.yml</em> in <em>build</em> folder contains <code>spring: profiles: active: prod</code>, but the app keeps defaulting to dev.</p>
  <p>This is my <strong>profile_prod.gradle</strong>:</p>
  <pre><code>dependencies {
      testImplementation &quot;com.h2database:h2&quot;
  }
  def profiles = &quot;prod&quot;
  if (project.hasProperty(&quot;no-liquibase&quot;)) {
      profiles += &quot;,no-liquibase&quot;
  }
  if (project.hasProperty(&quot;api-docs&quot;)) {
      profiles += &quot;,api-docs&quot;
  }
  springBoot {
      buildInfo()
  }
  bootRun {
      args = []
  }
  processResources {
      println 'I'm running -Pprod!'
      inputs.property('version', version)
      inputs.property('springProfiles', profiles)
      filesMatching(&quot;**/application.yml&quot;) {
          filter {
              it.replace(&quot;#project.version#&quot;, version)
          }
      }
  }
  </code></pre>