A
A
Alexey2021-04-03 15:47:17
IntelliJ IDEA
Alexey, 2021-04-03 15:47:17

How to enable the correct version of Gradel in IntelliJ IDEA?

I cloned the repository from github, when building it writes an error:

Mistake
Build file 'D:\Java\skills\SkillCalculator\build.gradle' line: 2

An exception occurred applying plugin request [id: 'org.springframework.boot', version: '2.4.3']
> Failed to apply plugin [id 'org.springframework.boot']
   > Spring Boot plugin requires Gradle 5 (5.6.x only) or Gradle 6 (6.3 or later). The current version is Gradle 6.1

Gradle plugin turned off/on. "\.gradle\wrapper\dists" directory has gradle-6.1-bin and gradle-6.8.3-all directories , how to switch to 6.8.3? In File | settings | Build, Execution, Deployment | BuildTools | There is no such setting in Gradle .
build.gradle
plugins {
  id 'org.springframework.boot' version '2.4.3'
  id 'io.spring.dependency-management' version '1.0.9.RELEASE'
  id 'java'
}

group = 'ru.betry'
version = '0.1'
sourceCompatibility = '1.8'

configurations {
  compileOnly {
    extendsFrom annotationProcessor
  }
}

repositories {
  mavenCentral()
}

dependencies {
  compile group: 'com.datastax.cassandra', name: 'cassandra-driver-core', version: '3.9.0'
  compile group: 'org.springframework.data', name: 'spring-data-cassandra', version: '3.0.1.RELEASE'
  compile group: 'org.springframework', name: 'spring-core', version: '5.2.7.RELEASE'
  compile group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: '2.3.1.RELEASE'
  implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  implementation 'org.springframework.boot:spring-boot-starter-web'
  compileOnly 'org.projectlombok:lombok'
  annotationProcessor 'org.projectlombok:lombok'
  testImplementation('org.springframework.boot:spring-boot-starter-test') {
    exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  }
}

test {
  useJUnitPlatform()
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-04-03
@xez

If your project uses wraper - there should be the correct version (suitable for this project).
Try to use the standalone version

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question