title: How to set JDK version in Gradle project WITHOUT explicit JDK path?
body: <p>When we set path to java libraries, we just write something like this:</p>
  
  <pre><code>compile('ch.qos.logback:logback-classic:1.0.13')
  </code></pre>
  
  <p>There is no any path information here, I don't bother if JAR will be located on drive <code>C:</code> on drive <code>D:</code> or in Linux root <code>/</code></p>
  
  <p>Let it remains so.</p>
  
  <p>And now I want to set JDK version. I wish to be able to change this version easily and portable without setting any paths, relative to my machine.</p>
  
  <p>Is this possible?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Apparently, even Ant can this: <a href="https://stackoverflow.com/a/11551770/258483">https://stackoverflow.com/a/11551770/258483</a></p>