title: In gradle, how to use a variable for a plugin version?
body: <p>One of my build scripts imports that nebula plugin:</p>
  
  <pre><code>plugins {
    id 'nebula.ospackage' version '3.5.0'
  }
  </code></pre>
  
  <p>I've been moving all of my version info into a separate file that all projects have access to and am wondering what is the correct syntax to convert to something like:</p>
  
  <pre><code>plugins {
    id 'nebula.ospackage' version "$versions.nebula_gradle_ospackage_plugin"
  }
  </code></pre>
  
  <p>When I try running the above with "gradle clean build", I get the following error:</p>
  
  <blockquote>
    <p>build file 'build.gradle': 2: argument list must be exactly 1 literal
    non empty string</p>
    
    <p>See
    <a href="https://docs.gradle.org/2.7/userguide/plugins.html#sec:plugins_block" rel="noreferrer">https://docs.gradle.org/2.7/userguide/plugins.html#sec:plugins_block</a>
    for information on the plugins {} block</p>
    
    <p>@ line 2, column 33.
           id 'nebula.ospackage' version "$versions.nebula_gradle_ospackage_plugin"</p>
  </blockquote>
  
  <p>The linked article shows how I could use the "buildscript" block, which works, but it seems like there must be a way to make this work in a single line?</p>