title: How to change Gradle version in Eclipse using Buildship?
body: <p>I am running Eclipse Luna SR2 with Buildship 1.0.1.</p>
  
  <p>The Gradle projects I create using the wizard are building with Gradle 2.5-rc-2, but I would like to use 2.6 which is the latest version.</p>
  
  <p>How can I do it?</p>
  
  <p>Setting the task had no effect:</p>
  
  <pre><code>apply plugin: 'java'
  
  repositories {
      jcenter()
  }
  
  dependencies {
      testCompile 'junit:junit:4.12'
  }
  
  task wrapper(type: Wrapper) {
      gradleVersion = '2.6'
  }
  </code></pre>
  
  <p>Solution:
  For some reason it is only working if I restart Eclipse after setting the version as Makoto suggested.</p>