title: Gradle unable to resolve maven profile dependency
body: <p>I have a maven project A that has profiles in it as:</p>
  
  <pre><code>&lt;properties&gt;
  &lt;bigquery.version&gt;0.0.1&lt;/bigquery.version&gt;
  &lt;/properties&gt;
  .
  .
  &lt;profiles&gt;
  &lt;profile&gt;
    &lt;id&gt;dev&lt;/id&gt;
    &lt;activation&gt;&lt;/activation&gt;
    &lt;properties&gt;
      &lt;build.version&gt;${bigquery.version}&lt;/build.version&gt;
    &lt;/properties&gt;
  &lt;/profile&gt;
  &lt;profile&gt;
    &lt;id&gt;screwdriver-v3&lt;/id&gt;
    &lt;activation&gt;
      &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
      &lt;property&gt;
        &lt;name&gt;screwdriver3&lt;/name&gt;
      &lt;/property&gt;
    &lt;/activation&gt;
    &lt;properties&gt;
      &lt;buildtype&gt;release&lt;/buildtype&gt;
      &lt;build.version&gt;${bigquery.version}.${maven.build.timestamp}&lt;/build.version&gt;
    &lt;/properties&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have created a version of A at : <code>0.0.1.20180424-0042</code></p>
  
  <p>I have another gradle project B that I want to add A as a dependency as:</p>
  
  <pre><code>compile group:'com.bq', name:'bigquery', version:'0.0.1.20180424-0042'
  </code></pre>
  
  <p>When I build gradle with <code>./gradlew clean build</code>, it is complaining as:</p>
  
  <pre><code>Could not resolve all files for configuration ':compileClasspath'.
  &gt; Could not resolve com.bq:bigquery:0.0.1.20180424-0042.
  Required by:
    project :
  &gt; Could not resolve com.bq:bigquery:0.0.1.20180424-0042.
    &gt; inconsistent module metadata found. Descriptor: com.bq:bigquery:0.0.1.${maven.build.timestamp} Errors: bad version: expected='0.0.1.20180424-0042' found='0.0.1.${maven.build.timestamp}'
  </code></pre>
  
  <p>How do I go about fixing the dependency?</p>