title: Spring Boot plugin requires Gradle 4.10 or later. The current version is Gradle 4.1
body: <p>I have a Spring Gradle project. I'm trying to make a build using <code>gradle build</code> command. But getting below error :</p>
  
  <pre><code>* Where:
  Build file 'F:\MyProjectName\build.gradle' line: 2
  
  * What went wrong:
  An exception occurred applying plugin request [id: 'org.springframework.boot', version: '2.2.2.RELEASE']
  &gt; Failed to apply plugin [id 'org.springframework.boot']
     &gt; Spring Boot plugin requires Gradle 4.10 or later. The current version is Gradle 4.1
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 1s
  </code></pre>
  
  <p>But I'm already using I'm using <strong>gradle-5.6.4</strong>. and also tried latest <strong>gradle-6.0.1-bin</strong> but getting same error.</p>
  
  <p><strong>gradle-wrapper.properties</strong></p>
  
  <pre><code>#Wed Dec 04 12:51:57 IST 2019
  distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
  distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStorePath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  </code></pre>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>plugins {
      id 'org.springframework.boot' version '2.2.1.RELEASE'
      id 'io.spring.dependency-management' version '1.0.8.RELEASE'
      id 'java'
  }
  
  group = 'com.example'
  version = '0.0.1-SNAPSHOT'
  sourceCompatibility = '1.8'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      implementation 'org.springframework.boot:spring-boot-starter-data-mongodb-reactive'
      implementation 'org.springframework.boot:spring-boot-starter-security'
      implementation 'org.springframework.boot:spring-boot-starter-web'
      implementation 'io.jsonwebtoken:jjwt:0.9.1'
      implementation 'org.springframework.security:spring-security-jwt:1.0.7.RELEASE'
      implementation 'org.springframework.security.oauth:spring-security-oauth2:2.4.0.RELEASE'
      implementation 'de.mkammerer:argon2-jvm:2.6'
  
      compileOnly 'org.projectlombok:lombok:1.18.10'
      annotationProcessor 'org.projectlombok:lombok:1.18.10'
  
      testImplementation('org.springframework.boot:spring-boot-starter-test') {
          exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
      }
      testImplementation 'io.projectreactor:reactor-test'
      testImplementation 'org.springframework.security:spring-security-test'
  }
  
  jar {
      enabled true
  }
  
  test {
      useJUnitPlatform()
  }
  </code></pre>
  
  <p>How to solve this? Thanks in advance.</p>