Gradle Maven Bom Properties
<p>I'm looking into migrating from maven to gradle and in our current setup we have a master pom that defines all of our version dependencies.</p>

<p>the project name is master-pom and has snippets like this:</p>

<pre class="lang-xml prettyprint-override"><code>        &lt;dependency&gt;
            &lt;groupId&gt;commons-beanutils&lt;/groupId&gt;
            &lt;artifactId&gt;commons-beanutils&lt;/artifactId&gt;
            &lt;version&gt;${commons-beanutils-version}&lt;/version&gt;
        &lt;/dependency&gt;
</code></pre>

<p>....
and later down in the file we define something along these lines:</p>

<pre><code>&lt;properties&gt;
    &lt;commons-beanutils-version&gt;1.9.1&lt;/commons-beanutils-version&gt;
&lt;/properties&gt;
</code></pre>

<p>Now, this is what I have so far:</p>

<pre class="lang-groovy prettyprint-override"><code> plugins {
    id "com.github.johnrengelman.shadow" version "1.2.4"
    id "nebula.dependency-recommender" version "3.7.0"
}


apply plugin: 'java'
apply plugin: 'war'

apply plugin: 'nebula.dependency-recommender'
apply plugin: "com.github.johnrengelman.shadow"




version = '1.0.0-SNAPSHOT'
sourceCompatibility =  '1.8'

description = """best-service-ever"""



repositories {
       mavenLocal()
       maven { url 'https://repo.server.com/nexus/content/groups/public'
          credentials {
               username 'username'
               password nexusPassword
          }
    }
       mavenCentral()
       jcenter()


}

dependencyRecommendations {
   mavenBom module: 'biz.company.name:master-pom:1.0.0-SNAPSHOT'
}



dependencies {
          ... some dependencies
          compile 'biz.company.name:db-schema'
}
</code></pre>

<p>At this point it'll pick up the version named ${db-version} and use the correctly defined one from the build-maven.  The problem is, I need to override that version with a specific version.</p>

<p>I tried putting the value in gradle.properties, but there's an issue with that.</p>

<p>db-version is unsupported by gradle, since it interprets - as arithmetic operation.  I instead tried defining the value as</p>

<p>db_version=0.0.1700</p>

<p>which seems to work, but how do I set it so it overrides the $db-version value.  I would like to avoid having to explicitly set the version: in every artifact.  </p>

<p>My ideal scenario would either allow me to simply override the properties that come from the bom file.</p>

<p>Has anyone run into this issue before? Or have a work around?</p>